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
/
lib
diff --git
a/tests/lib
b/tests/lib
index c91020bc3285a3e5545fe0e5d71b3d0340d42e8f..f45dd0b2bb80ecbdec39807d471cac72bf2f531d 100644
(file)
--- a/
tests/lib
+++ b/
tests/lib
@@
-72,6
+72,14
@@
t-expect-fail () {
fail "error message not found"
}
fail "error message not found"
}
+t-expect-push-fail () {
+ local mpat="$1"; shift
+ t-reporefs pre-push
+ t-expect-fail "$mpat" "$@"
+ t-reporefs post-push
+ diff $tmp/show-refs.{pre,post}-push
+}
+
t-reporefs () {
local whichoutput=$1; shift
local outputfile="$tmp/show-refs.$whichoutput"
t-reporefs () {
local whichoutput=$1; shift
local outputfile="$tmp/show-refs.$whichoutput"