diff options
-rw-r--r-- | tests/lib | 4 | ||||
-rwxr-xr-x | tests/tests/debpolicy-newreject | 3 |
2 files changed, 6 insertions, 1 deletions
@@ -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 bf9824a..e4c9b00 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 |