summaryrefslogtreecommitdiff
path: root/evergreen
diff options
context:
space:
mode:
Diffstat (limited to 'evergreen')
-rwxr-xr-xevergreen/check_resmoke_failure.sh5
-rw-r--r--evergreen/resmoke_tests_execute.sh1
2 files changed, 6 insertions, 0 deletions
diff --git a/evergreen/check_resmoke_failure.sh b/evergreen/check_resmoke_failure.sh
new file mode 100755
index 00000000000..4718098b70c
--- /dev/null
+++ b/evergreen/check_resmoke_failure.sh
@@ -0,0 +1,5 @@
+set -o verbose
+cd src
+if [ -f resmoke_error_code ]; then
+ exit $(cat resmoke_error_code)
+fi
diff --git a/evergreen/resmoke_tests_execute.sh b/evergreen/resmoke_tests_execute.sh
index fa33383c34d..3815c507758 100644
--- a/evergreen/resmoke_tests_execute.sh
+++ b/evergreen/resmoke_tests_execute.sh
@@ -170,6 +170,7 @@ if [[ ${disable_unit_tests} = "false" && ! -f ${skip_tests} ]]; then
elif [ $resmoke_exit_code != 0 ]; then
# On failure save the resmoke exit code.
echo $resmoke_exit_code > resmoke_error_code
+ exit 0
elif [ $resmoke_exit_code = 0 ]; then
# On success delete core files.
core_files=$(/usr/bin/find -H .. \( -name "*.core" -o -name "*.mdmp" \) 2> /dev/null)