summaryrefslogtreecommitdiff
path: root/tests/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-06-07 14:01:48 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-06-07 14:01:48 +0100
commite852e5f836f1016c9af35d331b6aacb3afe6a488 (patch)
tree0cd31eaedeffb4ca350236f7586421928fe8e4b5 /tests/tests
parent79614812a546bd31fcd5cae0d6c1ed0db47b5f83 (diff)
Test suite: drs-push-rejects: use set +o pipefail, not set +e
Diffstat (limited to 'tests/tests')
-rwxr-xr-xtests/tests/drs-push-rejects4
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") ;;