Make jenkins fail if tests fail catastrophically.

Previously, when the C++ tests seg faulted, Jenkins didn't make any noise.

Change-Id: I3e3599d1b55d704c59a9675e3074ee76348cb035
This commit is contained in:
James Kuszmaul
2015-06-29 15:34:57 -04:00
parent 35ccbb9c90
commit 7a711a21f9

View File

@@ -77,4 +77,15 @@ else
eval ${SCP_GET_JAVA_TEST_RESULT}
fi
# The mutex is released when this program exits
# 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