From f97a00d63b1d302cb23c5ffb090efea80fd8d42f Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 7 Jun 2015 14:24:19 +0100 Subject: Test suite: Make t-expect-push-fail out of the remains of mustfail --- tests/lib | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/lib') diff --git a/tests/lib b/tests/lib index c91020b..f45dd0b 100644 --- a/tests/lib +++ b/tests/lib @@ -72,6 +72,14 @@ t-expect-fail () { 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" -- cgit v1.2.3