chiark / gitweb /
Tests: break out t-git-dir-time-passes
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 May 2015 23:29:54 +0000 (00:29 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 31 May 2015 10:54:13 +0000 (11:54 +0100)
tests/lib
tests/tests/debpolicy-newreject

index 377c5fd..0933c43 100644 (file)
--- 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}
        : '
index bf9824a..e4c9b00 100755 (executable)
@@ -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