ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Billy Bacon <billy.ba...@thirty3.net>
Subject Re: Returning a 0 or 1 to a shell script from Ant
Date Wed, 30 Jul 2003 15:29:36 GMT
Stefan,

Here is a snippet from my shell script...

-------- Start Snippet --------

        cd $GKECMS
        ant deploy.test
        
        if test ! $?; then
            echo "Unit tests failed"
            exit 1
          fi
        
        echo "Unit tests must have passed"

-------- End Snippet ----------

The build is failing because of unit tests failing but I never see 'Unit
tests failed', I just see the 'Unit tests must have passed' echo...

Am I doing anything wrong here?



On 7/30/03 8:51 AM, "Stefan Bodewig" <bodewig@apache.org> wrote:

> On Wed, 30 Jul 2003, Billy Bacon <billy.bacon@thirty3.net> wrote:
> 
>> In your example below 'if test ! $?; then' what does the 'test'
>> variable stand for?
> 
> test is a Unix command, "man test".
> 
> Stefan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message