From: Ian Jackson Date: Sun, 3 May 2015 10:31:58 +0000 (+0100) Subject: Tests: Exercise policy periodic hook X-Git-Tag: debian/0.30~168 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=5e5ac359fd22d5e35916471468ab7f56fec9fc82 Tests: Exercise policy periodic hook --- 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