[jboss-svn-commits] JBL Code SVN: r38043 - labs/jbosstm/branches/JBOSSTS_4_16/scripts/hudson.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Apr 20 11:55:36 EDT 2012
Author: paul.robinson
Date: 2012-04-20 11:55:35 -0400 (Fri, 20 Apr 2012)
New Revision: 38043
Modified:
labs/jbosstm/branches/JBOSSTS_4_16/scripts/hudson/narayana.sh
Log:
JBTM-1130 scripts/hudson/narayana.sh
Modified: labs/jbosstm/branches/JBOSSTS_4_16/scripts/hudson/narayana.sh
===================================================================
--- labs/jbosstm/branches/JBOSSTS_4_16/scripts/hudson/narayana.sh 2012-04-20 09:38:02 UTC (rev 38042)
+++ labs/jbosstm/branches/JBOSSTS_4_16/scripts/hudson/narayana.sh 2012-04-20 15:55:35 UTC (rev 38043)
@@ -74,6 +74,17 @@
exit -1
fi
+# Check output of Tests
+ERRORS=$(cat reports/TEST-* | grep "<testsuite" | grep -v errors=\"0\")
+FAILURES=$(cat reports/TEST-* | grep "<testsuite" | grep -v failures=\"0\")
+if [ "$ERRORS" != "" -o "$FAILURES" != "" ]; then
+ echo $FAILURES
+ echo $ERRORS
+ echo "Failure(s) and/or error(s) found in XTS unit and/or interop tests. See previous line"
+ $JBOSS_HOME/bin/jboss-cli.sh --connect command=:shutdown
+ exit -1
+fi
+
#RUN INTEROP11 TESTS
cd ${WORKSPACE}
cd XTS
@@ -92,6 +103,16 @@
exit -1
fi
+ERRORS=$(cat reports/Test-* | grep "<testsuite" | grep -v errors=\"0\")
+FAILURES=$(cat reports/Test-* | grep "<testsuite" | grep -v failures=\"0\")
+if [ "$ERRORS" != "" -o "$FAILURES" != "" ]; then
+ echo $ERRORS
+ echo $FAILURES
+ echo "Failure(s) and/or error(s) found in XTS unit and/or interop tests. See previous line"
+ $JBOSS_HOME/bin/jboss-cli.sh --connect command=:shutdown
+ exit -1
+fi
+
#SHUTDOWN JBOSS
$JBOSS_HOME/bin/jboss-cli.sh --connect command=:shutdown
if [ "$?" != "0" ]; then
More information about the jboss-svn-commits
mailing list