chiark / gitweb /
Test suite: Make t-expect-push-fail out of the remains of mustfail
[dgit.git] / tests / tests / drs-push-rejects
index 13567c3f3a7b771ca235af9589fdb5f8524310aa..e80620daafe11233289f6a81727688d193ae6923 100755 (executable)
@@ -12,13 +12,8 @@ cd $p
 
 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 () {