remote="`git config dgit-distro.test-dummy.git-url`/$p.git"
-t-expect-fail 'Replay of previously-rewound upload' \
+t-expect-push-fail 'Replay of previously-rewound upload' \
git push "$remote" \
debian/1.1 \
debian/1.1~0:refs/dgit/sid
# record the tag, which prevents the replays. We are simulating
# abortive pushes (since we do want to avoid a situation where
# dangerous old signed tags can exist).
- t-policy false
+ t-policy-nonexist
t-commit "request with $delib that we will replay"
t-dgit build
- t-expect-fail E:'policy-hook.*No such file or directory' \
+ t-expect-push-fail E:'policy-hook.*No such file or directory' \
t-dgit push $delib
t-policy dgit-repos-policy-trusting
attempt-replay () {
local mpat=$1
git show debian/$replayv | grep -e $delib
- t-expect-fail "$mpat" \
+ t-expect-push-fail "$mpat" \
git push "$remote" \
debian/$replayv \
+debian/$replayv~0:refs/dgit/sid