diff options
author | ZyX <kp-pav@yandex.ru> | 2017-04-24 21:43:27 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-04-24 21:44:17 +0300 |
commit | 4ccef05829bc9956207299215672c2e8c3e51c43 (patch) | |
tree | 740d7ab29fa42c22a62010bad7ccc5e9a2898534 | |
parent | fc16d02c3dc8482fb41501f834083146680f41f8 (diff) | |
download | rneovim-4ccef05829bc9956207299215672c2e8c3e51c43.tar.gz rneovim-4ccef05829bc9956207299215672c2e8c3e51c43.tar.bz2 rneovim-4ccef05829bc9956207299215672c2e8c3e51c43.zip |
ci: Make $cmd failure fail the build without -o pipefail
-rw-r--r-- | ci/common/suite.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ci/common/suite.sh b/ci/common/suite.sh index 4fa8256ee8..c4120c8584 100644 --- a/ci/common/suite.sh +++ b/ci/common/suite.sh @@ -97,11 +97,13 @@ run_test_wd() { cmd="$cmd" \ sh -c ' ps -o sid= > "$sid_file" - ret=0 - if ! eval "$cmd" 2>&1 | tee -a "$output_file" ; then - ret=1 - fi - echo "$ret" > "$status_file" + ( + ret=0 + if ! eval "$cmd" 2>&1 ; then + ret=1 + fi + echo "$ret" > "$status_file" + ) | tee -a "$output_file" ' while test "$(stat -c "%s" "$status_file")" -eq 0 ; do prev_tmpsize=$tmpsize |