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