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: Make t-expect-push-fail out of the remains of mustfail
[dgit.git]
/
tests
/
tests
/
drs-push-rejects
diff --git
a/tests/tests/drs-push-rejects
b/tests/tests/drs-push-rejects
index 13567c3f3a7b771ca235af9589fdb5f8524310aa..e80620daafe11233289f6a81727688d193ae6923 100755
(executable)
--- a/
tests/tests/drs-push-rejects
+++ b/
tests/tests/drs-push-rejects
@@
-12,13
+12,8
@@
cd $p
mustfail () {
local mpat="$1"; shift
mustfail () {
local mpat="$1"; shift
- t-reporefs pre-push
-
- t-expect-fail "$mpat" \
- git push origin "$@" 2>&1 |tee $tmp/mustfail.txt
-
- t-reporefs post-push
- diff $tmp/show-refs.{pre,post}-push
+ t-expect-push-fail "$mpat" \
+ git push origin "$@"
}
mustsucceed () {
}
mustsucceed () {