summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/lib4
-rwxr-xr-xtests/tests/debpolicy-newreject3
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/lib b/tests/lib
index 377c5fd..0933c43 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 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