From: Ian Jackson Date: Sat, 16 May 2015 23:29:54 +0000 (+0100) Subject: Tests: break out t-git-dir-time-passes X-Git-Tag: debian/0.30~161 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=218ec13a7725840605eaa8ebe97e79b8d6500be6 Tests: break out t-git-dir-time-passes --- diff --git a/tests/lib b/tests/lib index 377c5fd1..0933c437 100644 --- a/tests/lib +++ b/tests/lib @@ -175,6 +175,10 @@ t-archive () { (set -e; cd $tmp/extract; dpkg-source -x ../mirror/pool/main/$dscf) } +t-git-dir-time-passes () { + touch -d 'last year' $tmp/git/$p.git +} + t-dgit () { local dgit=${DGIT_TEST-dgit} : ' diff --git a/tests/tests/debpolicy-newreject b/tests/tests/debpolicy-newreject index bf9824ac..e4c9b00e 100755 --- a/tests/tests/debpolicy-newreject +++ b/tests/tests/debpolicy-newreject @@ -29,7 +29,8 @@ t-policy-periodic # pretend it vanished from new: rm $tmp/incoming/* t-archive-none example -touch -d 'last year' $tmp/git/$p.git + +t-git-dir-time-passes t-policy-periodic