continuum-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marica Tan <marica....@gmail.com>
Subject Re: svn commit: r881150 - /continuum/branches/continuum-1.3.x/continuum-release/src/test/java/org/apache/maven/continuum/release/executors/ReleaseTaskExecutorTest.java
Date Tue, 17 Nov 2009 23:12:05 GMT
Done.  Thanks :D

--
Marica

On Tue, Nov 17, 2009 at 12:55 PM, Brett Porter <brett@apache.org> wrote:

> It is probably more reliable to do result.getOutput().replace( "\\", "/"
> ).contains( "test/executable/mvn" ) in case you get something like
> "test/executable\\mvn"
>
> - Brett
>
> On 17/11/2009, at 3:43 PM, ctan@apache.org wrote:
>
> > Author: ctan
> > Date: Tue Nov 17 04:43:34 2009
> > New Revision: 881150
> >
> > URL: http://svn.apache.org/viewvc?rev=881150&view=rev
> > Log:
> > fixed unit test
> >
> > Modified:
> >
>  continuum/branches/continuum-1.3.x/continuum-release/src/test/java/org/apache/maven/continuum/release/executors/ReleaseTaskExecutorTest.java
> >
> > Modified:
> continuum/branches/continuum-1.3.x/continuum-release/src/test/java/org/apache/maven/continuum/release/executors/ReleaseTaskExecutorTest.java
> > URL:
> http://svn.apache.org/viewvc/continuum/branches/continuum-1.3.x/continuum-release/src/test/java/org/apache/maven/continuum/release/executors/ReleaseTaskExecutorTest.java?rev=881150&r1=881149&r2=881150&view=diff
> >
> ==============================================================================
> > ---
> continuum/branches/continuum-1.3.x/continuum-release/src/test/java/org/apache/maven/continuum/release/executors/ReleaseTaskExecutorTest.java
> (original)
> > +++
> continuum/branches/continuum-1.3.x/continuum-release/src/test/java/org/apache/maven/continuum/release/executors/ReleaseTaskExecutorTest.java
> Tue Nov 17 04:43:34 2009
> > @@ -295,7 +295,8 @@
> >
> >         ReleaseResult result = (ReleaseResult)
> releaseManager.getReleaseResults().get( "testRelease" );
> >
> > -        if ( !result.getOutput().contains( "test/executable/mvn" ) )
> > +        if ( !result.getOutput().contains( "test/executable/mvn" ) &&
> > +                !result.getOutput().contains( "test\\executable\\mvn" )
> )
> >         {
> >             fail( "Error in release:perform. Missing executable" );
> >         }
> >
> >
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message