summaryrefslogtreecommitdiffstats
path: root/src/build
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2011-07-27 09:48:14 -0500
committerMATTHEW S. BARTH <msbarth@us.ibm.com>2011-07-28 14:26:53 -0500
commitda2ff5ab2bdb1292e62ec1c417d473b5b62b13aa (patch)
tree95890f1a3f4027b01f322e72f7d4f02ecc6dd8c6 /src/build
parent3f48d47c618b0b8e74c4cd8176bb46faa2e52664 (diff)
downloadtalos-hostboot-da2ff5ab2bdb1292e62ec1c417d473b5b62b13aa.tar.gz
talos-hostboot-da2ff5ab2bdb1292e62ec1c417d473b5b62b13aa.zip
Update autocitest to dump printk,traces,etc... when modules tests time out
Change-Id: I39f8c72913160df0b2124725e9e7463d2e2f0ede Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/216 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/build')
-rwxr-xr-xsrc/build/citest/autocitest28
1 files changed, 19 insertions, 9 deletions
diff --git a/src/build/citest/autocitest b/src/build/citest/autocitest
index 7784b1790..45abdd4b0 100755
--- a/src/build/citest/autocitest
+++ b/src/build/citest/autocitest
@@ -266,6 +266,7 @@ mods_completed_addr=`grep "CxxTest::g_ModulesCompleted" \
## note, don't use $VERBOSE here or you get all sorts of extra junk in the output file.
echo "Wait for unit test completion."
+declare -i timeout=0
modsstarted=0
modscompleted=0
loopcount=0
@@ -281,9 +282,8 @@ while [ $modsstarted -lt 1 -o $modsstarted -ne $modscompleted ]; do
if [ "$loopcount" -gt 60 ]; then
echo "ERROR: timed out after 5 minutes"
- stopsim
- stopserver
- exit 1
+ timeout=$(($modsstarted - $modscompleted))
+ break
fi
done
@@ -338,7 +338,7 @@ if [ $? -ne 0 ] ; then
echo "ERROR: Unable to run $?"
stopsim
stopserver
-exit 1
+ exit 1
fi
@@ -359,14 +359,24 @@ cat $SBXHOME/testprintk.log
echo
echo "==================================================="
-echo "$timestamp Finished autocitest with no errors."
-echo " total tests: $totaltests"
-echo " failed tests: $failedtests"
-echo " warnings: $warnings"
-echo " trace calls: $tracecalls"
+if [ $timeout = 0 ] ; then
+ echo "$timestamp Finished autocitest with no errors."
+else
+ echo "$timestamp Failed autocitest, modules timed out."
+ echo " failed modules: $timeout"
+fi
+echo " total tests: $totaltests"
+echo " failed tests: $failedtests"
+echo " warnings: $warnings"
+echo " trace calls: $tracecalls"
echo "==================================================="
echo
+if [ 0 != $timeout ] ; then
+ echo "Modules started: $modsstarted"
+ echo "Modules completed: $modscompleted"
+ exit 1
+fi
if [ 0 != $failedtests ] ; then
echo "$failedtests testcases failed."
exit 1
OpenPOWER on IntegriCloud