diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-05-17 00:29:54 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-05-31 11:54:13 +0100 |
commit | 218ec13a7725840605eaa8ebe97e79b8d6500be6 (patch) | |
tree | 38f5ef84894dfe47914182a4a797c779a601f3ea /tests | |
parent | 1a0df2300792f856dc03e71ef0d5ceac38113df8 (diff) |
Tests: break out t-git-dir-time-passes
Diffstat (limited to 'tests')
-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 |