From: Ian Jackson Date: Sat, 15 Oct 2016 20:05:07 +0000 (+0100) Subject: Test suite: tstunt-parsechangelog: Produce Timestamp field X-Git-Tag: archive/debian/2.0~5 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=537c0a24ac667a7996e726fabfb645eb91d2b583;hp=d7615b2df06548d7454ab3ad1a309b475900ab4b Test suite: tstunt-parsechangelog: Produce Timestamp field Like official one does, nowadays. Signed-off-by: Ian Jackson --- diff --git a/debian/changelog b/debian/changelog index a60f35a4..fc7d222a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -119,6 +119,8 @@ dgit (1.5~~) unstable; urgency=medium * Many new tests (especially for new functionality). * Add missing debhelper (>=8) to test suite's global Depends. * tstunt arrangements: Fix mishandling of PERLLIB, etc. + * tstunt-parsechangelog: Produce Timestamp field (like official one + does, now). -- diff --git a/tests/tstunt/dpkg-parsechangelog b/tests/tstunt/dpkg-parsechangelog index 436591f6..ba6ef54a 100755 --- a/tests/tstunt/dpkg-parsechangelog +++ b/tests/tstunt/dpkg-parsechangelog @@ -60,7 +60,8 @@ for (;;) { Maintainer: $1 Date: $2 END - last; + print "Timestamp: " or die $!; + exec qw(date +%s -d), $2; die $!; } elsif (m/^ --\s*$/) { last; } elsif (!m/\S/) {