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 377c5fd1e4dd93a71bef4ff4d1fbf438e3fa65d1..0933c4373d588c45e248f9c6185c2e16fad55086 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 bf9824ac9cb82130bae41c78cde4864d3e1f6403..e4c9b00ef9948941b828e31e5f69cd85bb3b97ed 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