diff options
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -180,6 +180,16 @@ t-expect-push-fail-retriably () { $tmp/t.push-output } +t-expect-push-fail-tainted () { + # t-expect-push-fail-local-and-remote $mlocal $mremote $push_args... + # Messages are implicitly prefixed with 'E:^' + # to avoid spotting them in protocol debug output etc. + local ml="$1"; local mr="$2"; shift; shift + + t-expect-push-fail-retriably E:"^$ml" "$@" + t-expect-push-fail E:"^$mr" "$@" --force-push-tainted +} + t-git-objects-not-present () { # t-git-objects-not-present GITDIR|'' OBJID [...] # specifying '' means the repo for package $p |