summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-05-17 00:29:54 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-05-31 11:54:13 +0100
commit218ec13a7725840605eaa8ebe97e79b8d6500be6 (patch)
tree38f5ef84894dfe47914182a4a797c779a601f3ea /tests
parent1a0df2300792f856dc03e71ef0d5ceac38113df8 (diff)
Tests: break out t-git-dir-time-passes
Diffstat (limited to 'tests')
-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