diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-06-23 13:22:23 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-06-23 14:14:10 +0100 |
commit | 27372f8aae862754654b46cf719f759cea99eb9d (patch) | |
tree | c6be8e7f78f00e8cda76dac0011c10e95c34aec1 /tests | |
parent | 62eaf578fb1af468b02c455db65bf93b3422ba49 (diff) |
Test suite: Introduce t-policy-nonexist
"t-policy false" did not work properly.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib | 4 | ||||
-rwxr-xr-x | tests/tests/trustingpolicy-replay | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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 diff --git a/tests/tests/trustingpolicy-replay b/tests/tests/trustingpolicy-replay index e0bf334..2736a52 100755 --- a/tests/tests/trustingpolicy-replay +++ b/tests/tests/trustingpolicy-replay @@ -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 |