chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test suite: drs-push-rejects: use set +o pipefail, not set +e
[dgit.git]
/
tests
/
tests
/
drs-push-rejects
diff --git
a/tests/tests/drs-push-rejects
b/tests/tests/drs-push-rejects
index 5b450bf85cc32efc9acff695643d3cefbfce977b..74ddd37adcc1f9100b5af629016ed4cb4066f253 100755
(executable)
--- 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
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[*]}"
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") ;;
case $ps in
"0 0") fail "push unexpectedly succeeded (instead of: $wantmsg)" ;;
*" 0") ;;