From 7a711a21f9cbdddfd0f014145021ec5b94ae9632 Mon Sep 17 00:00:00 2001 From: James Kuszmaul Date: Mon, 29 Jun 2015 15:34:57 -0400 Subject: [PATCH] Make jenkins fail if tests fail catastrophically. Previously, when the C++ tests seg faulted, Jenkins didn't make any noise. Change-Id: I3e3599d1b55d704c59a9675e3074ee76348cb035 --- test-scripts/jenkins-run-tests-get-results.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test-scripts/jenkins-run-tests-get-results.sh b/test-scripts/jenkins-run-tests-get-results.sh index dc33797c17..71b4945e21 100755 --- a/test-scripts/jenkins-run-tests-get-results.sh +++ b/test-scripts/jenkins-run-tests-get-results.sh @@ -77,4 +77,15 @@ else eval ${SCP_GET_JAVA_TEST_RESULT} fi -# The mutex is released when this program exits \ No newline at end of file +# Make sure that we got test results back. +if [ ! -e ${DEFAULT_LOCAL_CPP_TEST_RESULT} ]; then + echo "There are no results from the C++ tests; they must have failed." + exit 100 +fi + +if [ ! -e ${DEFAULT_LOCAL_JAVA_TEST_RESULT} ]; then + echo "There are no results from the Java tests; they must have failed." + exit 101 +fi + +# The mutex is released when this program exits