Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-9967

LayeredDistributionTestCase fails without clean install

    Details

    • Steps to Reproduce:
      Hide

      cd testsuite/integration/manualmode
      mvn clean test -Dtest=org.jboss.as.test.manualmode.layered.LayeredDistributionTestCase
      mvn test -Dtest=org.jboss.as.test.manualmode.layered.LayeredDistributionTestCase
      

      Show
      cd testsuite/integration/manualmode mvn clean test -Dtest=org.jboss.as.test.manualmode.layered.LayeredDistributionTestCase mvn test -Dtest=org.jboss.as.test.manualmode.layered.LayeredDistributionTestCase

      Description

      LayeredDistributionTestCase fails when started twice without mvn clean - removing old working directory is done using operation supporting only blank directories:

      Running org.jboss.as.test.manualmode.layered.LayeredDistributionTestCase
      Tests run: 4, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.1 sec <<< FAILURE! - in org.jboss.as.test.manualmode.layered.LayeredDistributionTestCase
      before(org.jboss.as.test.manualmode.layered.LayeredDistributionTestCase)  Time elapsed: 0.058 sec  <<< ERROR!
      java.nio.file.DirectoryNotEmptyException: target/jbossas-layered/modules/system/layers/test
      	at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)
      	at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
      	at java.nio.file.Files.deleteIfExists(Files.java:1165)
      	at org.jboss.as.test.manualmode.layered.LayeredDistributionTestCase.buildLayer(LayeredDistributionTestCase.java:162)
      	at org.jboss.as.test.manualmode.layered.LayeredDistributionTestCase.before(LayeredDistributionTestCase.java:99)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  soul2zimate Chao Wang
                  Reporter:
                  honza889 Jan Kalina
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: