Author: jfrederic.clere(a)jboss.com
Date: 2008-06-20 03:48:51 -0400 (Fri, 20 Jun 2008)
New Revision: 1724
Modified:
sandbox/httpd/httpd.test
Log:
Stop httpd even if the tests failed.
Modified: sandbox/httpd/httpd.test
===================================================================
--- sandbox/httpd/httpd.test 2008-06-19 08:58:46 UTC (rev 1723)
+++ sandbox/httpd/httpd.test 2008-06-20 07:48:51 UTC (rev 1724)
@@ -225,13 +225,14 @@
echo "Start FAILED"
exit 1
fi
+rc=0
curl -v
http://localhost:7779 | grep "It works\!"
if [ $? -ne 0 ]; then
echo "Test FAILED"
- exit 1
+ rc=1
fi
(cd $HOME/$TMPLOC/APACHE
bin/apachectl stop
)
echo "DONE"
-exit 0
+exit $rc