chiark / gitweb /
Test suite: Introduce t-policy-nonexist
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 23 Jun 2015 12:22:23 +0000 (13:22 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 23 Jun 2015 13:14:10 +0000 (14:14 +0100)
"t-policy false" did not work properly.

tests/lib
tests/tests/trustingpolicy-replay

index 30fce38e9d4f06018326c6a0eb9193f5fe669385..e710f39dc660f8d1d065a3c46c08d5fb93449f19 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -516,6 +516,10 @@ t-policy-admin () {
        ${DGIT_INFRA_PFX}dgit-repos-admin-debian --repos $tmp/git "$@"
 }
 
+t-policy-nonexist () {
+       ln -sf no-such-file-or-directory $drs_dispatch/policy-hook
+}
+
 t-policy () {
        local policyhook=$1
        policyhook=${DGIT_INFRA_PFX}$policyhook
index e0bf334beac8e4b75af47293db0f1e5f215986ad..2736a523de98d05f0b24065af3857bb30bc6c4b5 100755 (executable)
@@ -43,7 +43,7 @@ prepare-replay () {
        # 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