[ http://jira.codehaus.org/browse/CONTINUUM-968?page=comments#action_78841 
] 
            
Wendy Smoak commented on CONTINUUM-968:
---------------------------------------

I'm still seeing a (repeatable) test failure in continuum-release.  (Windows XP 
and Cygwin.)

console output:
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.maven.continuum.release.executors.ReleaseTaskExecutorTest
[INFO] Executing: svn --non-interactive checkout file://localhost/c:/svn/maven/c
ontinuum/continuum-release/target/scm-test/trunk work-dir
[INFO] Working directory: 
c:\svn\maven\continuum\continuum-release\target\test-classes
[INFO] Verifying that there are no local modifications...
[INFO] Executing: svn --non-interactive status
[INFO] Working directory: 
c:\svn\maven\continuum\continuum-release\target\test-classes\work-dir
[INFO] Checking dependencies and plugins for snapshots ...
[INFO] Transforming 'Simple Project'...
[INFO] Checking in modified POMs...
[INFO] Executing: svn --non-interactive commit --file 
c:\DOCUME~1\wsmoak\LOCALS~1\Temp\maven-scm-1838657772.commit 
c:/svn/maven/continuum/continuum-release/target/test-classes/work-dir/pom.xml
[INFO] Working directory: 
c:\svn\maven\continuum\continuum-release\target\test-classes\work-dir
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.265 sec <<< 
FAILURE!

Results :
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

Surefire output:

$ cat target/surefire-reports/*.txt
-------------------------------------------------------------------------------
Test set: org.apache.maven.continuum.release.executors.ReleaseTaskExecutorTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.265 sec <<< 
FAILURE!
testReleases(org.apache.maven.continuum.release.executors.ReleaseTaskExecutorTest)
  Time elapsed: 3.172 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Error in release:prepare. Release output 
follows:
[INFO] Verifying that there are no local modifications...
[INFO] Checking dependencies and plugins for snapshots ...
[INFO] Transforming 'Simple Project'...
[ERROR] org.apache.maven.shared.release.scm.ReleaseScmCommandException: Unable 
to commit files
Provider message:
The svn command failed.
Command output:
svn: 
'/cygdrive/c/svn/maven/continuum/continuum-release/target/test-classes/work-dir/c:/svn/maven/continuum/continuum-release/target/test-classes/work-dir'
 is not a working copy

        at 
org.apache.maven.shared.release.phase.ScmCommitPhase.execute(ScmCommitPhase.java:102)
        at 
org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:202)
        at 
org.apache.maven.shared.release.DefaultReleaseManager.prepareWithResult(DefaultReleaseManager.java:108)
        at 
org.apache.maven.continuum.release.executors.PrepareReleaseTaskExecutor.executeTask(PrepareReleaseTaskExecutor.java:81)
        at 
org.apache.maven.continuum.release.executors.ReleaseTaskExecutorTest.doPrepareWithNoError(ReleaseTaskExecutorTest.java:166)
        at 
org.apache.maven.continuum.release.executors.ReleaseTaskExecutorTest.releaseSimpleProject(ReleaseTaskExecutorTest.java:101)
        at 
org.apache.maven.continuum.release.executors.ReleaseTaskExecutorTest.testReleases(ReleaseTaskExecutorTest.java:115)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)

        at junit.framework.Assert.fail(Assert.java:47)
        at 
org.apache.maven.continuum.release.executors.ReleaseTaskExecutorTest.doPrepareWithNoError(ReleaseTaskExecutorTest.java:171)
        at 
org.apache.maven.continuum.release.executors.ReleaseTaskExecutorTest.releaseSimpleProject(ReleaseTaskExecutorTest.java:101)
        at 
org.apache.maven.continuum.release.executors.ReleaseTaskExecutorTest.testReleases(ReleaseTaskExecutorTest.java:115)


> 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

        

Reply via email to