diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-06-07 14:01:48 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-06-07 14:01:48 +0100 |
commit | e852e5f836f1016c9af35d331b6aacb3afe6a488 (patch) | |
tree | 0cd31eaedeffb4ca350236f7586421928fe8e4b5 /tests/tests/drs-push-rejects | |
parent | 79614812a546bd31fcd5cae0d6c1ed0db47b5f83 (diff) |
Test suite: drs-push-rejects: use set +o pipefail, not set +e
Diffstat (limited to 'tests/tests/drs-push-rejects')
-rwxr-xr-x | tests/tests/drs-push-rejects | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tests/drs-push-rejects b/tests/tests/drs-push-rejects index 5b450bf..74ddd37 100755 --- a/tests/tests/drs-push-rejects +++ b/tests/tests/drs-push-rejects @@ -13,10 +13,10 @@ cd $p mustfail () { local wantmsg="$1"; shift t-reporefs >$tmp/show-refs.pre-push - set +e + set +o pipefail git push origin "$@" 2>&1 |tee $tmp/mustfail.txt ps="${PIPESTATUS[*]}" - set -e + set -o pipefail case $ps in "0 0") fail "push unexpectedly succeeded (instead of: $wantmsg)" ;; *" 0") ;; |