diff --git a/evergreen/failed_unittests_gather.sh b/evergreen/failed_unittests_gather.sh index 110ef40a0fe..a31a3d8efe2 100644 --- a/evergreen/failed_unittests_gather.sh +++ b/evergreen/failed_unittests_gather.sh @@ -8,7 +8,9 @@ set -eou pipefail # Only run on unit test tasks so we don't target mongod binaries from cores. if [ "${task_name}" != "run_unittests" ] && [ "${task_name}" != "run_dbtest" ] \ && [ "${task_name}" != "run_unittests_with_recording" ] \ - && [[ ${task_name} != integration_tests* ]]; then + && [[ ${task_name} != integration_tests* ]] \ + && [[ "${task_name}" != compile_and_run_unittests_* ]]; then + echo "Not gathering failed unittests binaries as this is not a unittest task: ${task_name}" exit 0 fi