chiark / gitweb /
Test suite: Make it possible to call t-policy more than once (moving t-dsd out of it)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 31 May 2015 17:31:22 +0000 (18:31 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 31 May 2015 17:32:57 +0000 (18:32 +0100)
tests/lib
tests/tests/trustingpolicy-replay

index aec8612..e6ca6fb 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -425,17 +425,16 @@ t-policy-admin () {
 
 t-policy () {
        local policyhook=$1
-       t-dsd
-
        ln -sf ${DGIT_INFRA_PFX}$policyhook \
                $drs_dispatch/policy-hook
-
-       mkdir $tmp/git
-       t-policy-admin create-db
 }
 
 t-debpolicy () {
+       t-dsd
        t-policy dgit-repos-policy-debian
+
+       mkdir $tmp/git
+       t-policy-admin create-db
 }
 
 t-policy-periodic () {
index f6053aa..57ef286 100755 (executable)
@@ -4,6 +4,7 @@ set -e
 
 t-tstunt-parsechangelog
 
+t-dsd
 t-policy dgit-repos-policy-trusting
 t-prep-newpackage example 1.0