[ http://jira.codehaus.org/browse/CONTINUUM-968?page=comments#action_79014
]
thierry lach commented on CONTINUUM-968:
----------------------------------------
I'm getting a consistent fail with the following output from surefire:
------------------------------------------------------------------------------
Test set: org.apache.maven.continuum.release.executors.ReleaseTaskExecutorTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.932 sec <<<
FAILURE!
testReleases(org.apache.maven.continuum.release.executors.ReleaseTaskExecutorTest)
Time elapsed: 3.869 sec <<< ERROR!
java.io.FileNotFoundException:
C:\continuum-1.1-src\continuum-release\target\test-classes\work-dir\pom.xml
(The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at org.codehaus.plexus.util.FileUtils.fileRead(FileUtils.java:273)
at
org.apache.maven.continuum.release.executors.ReleaseTaskExecutorTest.releaseSimpleProject(ReleaseTaskExecutorTest.java:98)
at
org.apache.maven.continuum.release.executors.ReleaseTaskExecutorTest.testReleases(ReleaseTaskExecutorTest.java:115)
and the following output on the console....
[INFO] Surefire report directory:
C:\continuum-1.1-src\continuum-release\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.maven.continuum.release.executors.ReleaseTaskExecutorTest
[INFO] Executing: svn --non-interactive checkout
file://localhost/C:/continuum-1.1-src/continuum-release/target/scm-test/trunk
work-dir
[INFO] Working directory:
C:\continuum-1.1-src\continuum-release\target\test-classes
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.948 sec <<<
FAILURE!
Results :
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 16 seconds
[INFO] Finished at: Wed Nov 01 09:46:54 EST 2006
[INFO] Final Memory: 15M/28M
[INFO] ------------------------------------------------------------------------
When I try the svn command manually, I get....
C:\continuum-1.1-src>svn --non-interactive checkout
file://localhost/C:/continuum-1.1-src/continuum-release/target/scm-test/trunk
work-dir
svn: Unable to open an ra_local session to URL
svn: Unable to open repository
'file://localhost/C:/continuum-1.1-src/continuum-release/target/scm-test/trunk'
C:\continuum-1.1-src>
But I can use svnadmin to verify the repository...
C:\continuum-1.1-src>svnadmin verify
C:/continuum-1.1-src/continuum-release/target/scm-test
* Verified revision 0.
* Verified revision 1.
* Verified revision 2.
C:\continuum-1.1-src>
Hopefully this will help....
> Tests for continuum-release fail randomly
> -----------------------------------------
>
> Key: CONTINUUM-968
> URL: http://jira.codehaus.org/browse/CONTINUUM-968
> Project: Continuum
> Issue Type: Test
> Affects Versions: 1.1
> Environment: tests fail for some environments and pass for others.
> For some they fail at random
> Reporter: Philippe Faes
> Priority: Minor
> Fix For: 1.1
>
> Attachments: continuum-release.diff
>
>
> The test for continuum-release fails randomly. This is because the two test
> methods are executed in a random order (this is intended JUnit behavior), and
> the tests alter files.
> Solution is to restore files between tests (method setUp) and to force the
> order of the two tests (create one test method that calls the two other
> methods one by one).
> Patch is attached. Please verify and commit.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira