summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-06-23 13:22:23 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-06-23 14:14:10 +0100
commit27372f8aae862754654b46cf719f759cea99eb9d (patch)
treec6be8e7f78f00e8cda76dac0011c10e95c34aec1 /tests/lib
parent62eaf578fb1af468b02c455db65bf93b3422ba49 (diff)
Test suite: Introduce t-policy-nonexist
"t-policy false" did not work properly.
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib b/tests/lib
index 30fce38..e710f39 100644
--- 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