diff options
author | Richard Samuels <richard.l.samuels@gmail.com> | 2021-06-24 19:45:51 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-07-02 02:08:51 +0000 |
commit | 8a30e2e888640f58bd7e5134e14b39de4b0b1491 (patch) | |
tree | 72e16e9201e83f34265e0ed3a595b9e5794e0e32 /evergreen/resmoke_tests_execute.sh | |
parent | 951dfeb5aca55cc881293372dfda4b72bb478b92 (diff) | |
download | mongo-8a30e2e888640f58bd7e5134e14b39de4b0b1491.tar.gz |
SERVER-57140 reformat shell scripts and allow space between redirect operators
Diffstat (limited to 'evergreen/resmoke_tests_execute.sh')
-rw-r--r-- | evergreen/resmoke_tests_execute.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/evergreen/resmoke_tests_execute.sh b/evergreen/resmoke_tests_execute.sh index 99daa890f0d..042cc226f81 100644 --- a/evergreen/resmoke_tests_execute.sh +++ b/evergreen/resmoke_tests_execute.sh @@ -1,4 +1,4 @@ -DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" +DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)" . "$DIR/prelude.sh" cd src @@ -26,7 +26,7 @@ if [[ ${disable_unit_tests} = "false" && ! -f ${skip_tests} ]]; then tags_build_variant="enterprise-rhel-80-64-bit-dynamic-all-feature-flags-required" fi - $python buildscripts/testmatrix/getdisplaytaskname.py "${task_name}" "${build_variant}" >display_task_name.txt + $python buildscripts/testmatrix/getdisplaytaskname.py "${task_name}" "${build_variant}" > display_task_name.txt display_task_name=$(cat display_task_name.txt) tar -xzf patch_test_tags.tgz @@ -62,7 +62,7 @@ if [[ ${disable_unit_tests} = "false" && ! -f ${skip_tests} ]]; then if [ -f /proc/self/coredump_filter ]; then # Set the shell process (and its children processes) to dump ELF headers (bit 4), # anonymous shared mappings (bit 1), and anonymous private mappings (bit 0). - echo 0x13 >/proc/self/coredump_filter + echo 0x13 > /proc/self/coredump_filter if [ -f /sbin/sysctl ]; then # Check that the core pattern is set explicitly on our distro image instead @@ -170,14 +170,14 @@ if [[ ${disable_unit_tests} = "false" && ! -f ${skip_tests} ]]; then # 75 is exit code resmoke.py uses when the log output would be incomplete due to failing # to communicate with logkeeper. if [[ $resmoke_exit_code = 74 || $resmoke_exit_code = 75 ]]; then - echo $resmoke_exit_code >run_tests_infrastructure_failure + echo $resmoke_exit_code > run_tests_infrastructure_failure exit 0 elif [ $resmoke_exit_code != 0 ]; then # On failure save the resmoke exit code. - echo $resmoke_exit_code >resmoke_error_code + echo $resmoke_exit_code > resmoke_error_code 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) + core_files=$(/usr/bin/find -H .. \( -name "*.core" -o -name "*.mdmp" \) 2> /dev/null) rm -rf $core_files fi |