X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Ftests%2Ftrustingpolicy-replay;h=8cc205ce1dfdfece7d1f89840f9e6ecb0cbda913;hb=441cf15ffbafea7aa6be4cc04bb0085c8d79063e;hp=2736a523de98d05f0b24065af3857bb30bc6c4b5;hpb=27372f8aae862754654b46cf719f759cea99eb9d;p=dgit.git diff --git a/tests/tests/trustingpolicy-replay b/tests/tests/trustingpolicy-replay index 2736a523..8cc205ce 100755 --- a/tests/tests/trustingpolicy-replay +++ b/tests/tests/trustingpolicy-replay @@ -20,7 +20,7 @@ t-dgit build t-dgit push t-rm-dput-dropping -git checkout debian/1.0 +git checkout $tagpfx/1.0 t-dgit build t-dgit push --deliberately-fresh-repo @@ -28,8 +28,8 @@ remote="`git config dgit-distro.test-dummy.git-url`/$p.git" t-expect-push-fail 'Replay of previously-rewound upload' \ git push "$remote" \ - debian/1.1 \ - debian/1.1~0:refs/dgit/sid + $tagpfx/1.1 \ + $tagpfx/1.1~0:refs/dgit/sid git checkout master @@ -47,7 +47,7 @@ prepare-replay () { t-commit "request with $delib that we will replay" t-dgit build - t-expect-push-fail E:'policy-hook.*No such file or directory' \ + t-expect-push-fail 'system: No such file or directory' \ t-dgit push $delib t-policy dgit-repos-policy-trusting @@ -57,17 +57,17 @@ prepare-replay () { attempt-replay () { local mpat=$1 - git show debian/$replayv | grep -e $delib + git show $tagpfx/$replayv | grep -e $delib t-expect-push-fail "$mpat" \ git push "$remote" \ - debian/$replayv \ - +debian/$replayv~0:refs/dgit/sid + $tagpfx/$replayv \ + +$tagpfx/$replayv~0:refs/dgit/sid } prepare-replay --deliberately-fresh-repo # simulate some other thing that we shouldn't delete -git push $tmp/git/$p.git +master:refs/heads/for-testing +git push $dgitrepo +master:refs/heads/for-testing attempt-replay 'does not declare previously heads/for-testing' @@ -77,7 +77,7 @@ t-commit 'later version to stop not fast forward rewinding' t-dgit build t-dgit push -attempt-replay "does not declare previously tags/debian/$v" +attempt-replay "does not declare previously tags/$tagpfx/$v" echo ok.