summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2018-04-27 10:25:57 -0400
committerJonathan Abrahams <jonathan@mongodb.com>2018-04-27 11:58:04 -0400
commit873b3feaae29803d17baf3ba07652c38e36543ac (patch)
treee26502f958d14299dd94469cb229e83ef9d88402
parenta9423f8fac08e51b289777fd4431c6f261273c44 (diff)
downloadmongo-873b3feaae29803d17baf3ba07652c38e36543ac.tar.gz
SERVER-33963 Skip unittests if compile_unittests fails
-rw-r--r--etc/evergreen.yml13
1 files changed, 11 insertions, 2 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index 4871a457f16..700b34061cf 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -808,7 +808,7 @@ functions:
set -o errexit
set -o verbose
- if [ ${disable_unit_tests|false} = "false" ]; then
+ if [[ ${disable_unit_tests|false} = "false" && ! -f ${skip_tests|/dev/null} ]]; then
# activate the virtualenv if it has been set up
${activate_virtualenv}
@@ -943,7 +943,7 @@ functions:
exit 0
fi
exit $resmoke_exit_code
- fi # end if ${disable_unit_tests}
+ fi # end if [[ ${disable_unit_tests} && ! -f ${skip_tests|/dev/null} ]]
- command: shell.exec
params:
@@ -975,7 +975,14 @@ functions:
fi
${activate_virtualenv}
+ set +o errexit
${compile_env|} $python ./buildscripts/scons.py ${compile_flags|} ${task_compile_flags|} ${scons_cache_args|} $extra_args ${targets} ${additional_targets|} MONGO_VERSION=${version}
+ exit_status=$?
+ # If compile fails we do not run any tests
+ if [ $exit_status -ne 0 ]; then
+ touch ${skip_tests}
+ fi
+ exit $exit_status
"generate compile expansions" :
command: shell.exec
@@ -2150,6 +2157,8 @@ functions:
value: ${project}/${build_variant}/${revision}/debugsymbols/debugsymbols-${build_id}.${ext|tgz}
- key: mongo_shell
value: ${project}/${build_variant}/${revision}/binaries/mongo-shell-${build_id}.${ext|tgz}
+ - key: skip_tests
+ value: skip_test-${build_id}
### Clear and print OOM messages ###
"clear OOM messages":