Author: jfrederic.clere(a)jboss.com
Date: 2011-05-18 10:59:50 -0400 (Wed, 18 May 2011)
New Revision: 2784
Modified:
trunk/build/unix/buildbin.TC7.sh
Log:
Stop TC7 if one of tests fails.
Modified: trunk/build/unix/buildbin.TC7.sh
===================================================================
--- trunk/build/unix/buildbin.TC7.sh 2011-05-12 16:11:01 UTC (rev 2783)
+++ trunk/build/unix/buildbin.TC7.sh 2011-05-18 14:59:50 UTC (rev 2784)
@@ -170,8 +170,19 @@
echo ""
export TS_HOME=/home/hudson/tcks/servlet/servlettck
export ANT_HOME=$TS_HOME/tools/ant
-(cd $TS_HOME/bin; ant run.all || exit 1) || exit 1
-(cd $TS_HOME/bin; ant report || exit 1) || exit 1
+(cd $TS_HOME/bin; ant run.all || exit 1)
+if [ $? -ne 0 ]; then
+ echo "Failed test failed..."
+ (cd $native_sources/output/build; bin/shutdown.sh)
+ exit 1
+else
+ (cd $TS_HOME/bin; ant report || exit 1)
+ if [ $? -ne 0 ]; then
+ echo "Failed build test report failed..."
+ (cd $native_sources/output/build; bin/shutdown.sh)
+ exit 1
+ fi
+fi
echo ""
echo "Stopping TC7..."