From 5e5ac359fd22d5e35916471468ab7f56fec9fc82 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 3 May 2015 11:31:58 +0100 Subject: [PATCH] Tests: Exercise policy periodic hook --- tests/lib | 5 +++++ tests/tests/debpolicy-newreject | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/tests/lib b/tests/lib index abb2657a..377c5fd1 100644 --- a/tests/lib +++ b/tests/lib @@ -368,6 +368,11 @@ t-debpolicy () { t-policy-admin create-db } +t-policy-periodic () { + ${DGIT_REPOS_SERVER_TEST-dgit-repos-server} \ + test-dummy $drs_dispatch '' --cron +} + t-chain-test () { local ct=$1 local d=${0%/*} diff --git a/tests/tests/debpolicy-newreject b/tests/tests/debpolicy-newreject index 7cf2a3a4..813a5e21 100755 --- a/tests/tests/debpolicy-newreject +++ b/tests/tests/debpolicy-newreject @@ -19,4 +19,10 @@ t-dgit build t-expect-fail 'forbidden for testing' \ t-dgit push --new +git reset --hard HEAD~ +t-dgit build +t-dgit push --new + +t-policy-periodic + echo xxx up to here -- 2.30.2