From df2685b0b8364f6dfed541113478bbd23a175a01 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 31 May 2015 18:31:22 +0100 Subject: [PATCH 1/1] Test suite: Make it possible to call t-policy more than once (moving t-dsd out of it) --- tests/lib | 9 ++++----- tests/tests/trustingpolicy-replay | 1 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/lib b/tests/lib index aec86127..e6ca6fb3 100644 --- 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 () { diff --git a/tests/tests/trustingpolicy-replay b/tests/tests/trustingpolicy-replay index f6053aaf..57ef2866 100755 --- a/tests/tests/trustingpolicy-replay +++ b/tests/tests/trustingpolicy-replay @@ -4,6 +4,7 @@ set -e t-tstunt-parsechangelog +t-dsd t-policy dgit-repos-policy-trusting t-prep-newpackage example 1.0 -- 2.30.2