This is an automated email from the git hooks/post-receive script. nthykier pushed a commit to branch master in repository lintian.
commit 24fd373267f3c7f392f4eead9bf286cd05aad9c9 Author: Niels Thykier <[email protected]> Date: Sun Dec 25 11:18:54 2016 +0000 t: Fix a regression in the test suite Signed-off-by: Niels Thykier <[email protected]> --- t/runtests | 6 ++++++ t/templates/tests/pedantic/debian/changelog.in | 9 +++++++++ t/templates/tests/skel/debian/changelog.in | 9 ++++++++- .../skel => tests/fields-version-bad/debian}/debian/changelog.in | 3 +-- .../skel => tests/scripts-python2/debian}/debian/changelog.in | 1 + 5 files changed, 25 insertions(+), 3 deletions(-) diff --git a/t/runtests b/t/runtests index 61f3aad..4b650c1 100755 --- a/t/runtests +++ b/t/runtests @@ -1036,6 +1036,12 @@ sub check_test_is_sane { $data->{source} ||= $data->{testname}; $data->{type} ||= 'native'; $data->{date} ||= $DATE; + $data->{prev_date} ||= 'Mon, 01 Jan 1990 00:00:00 +0100'; + if (not $data->{prev_version}) { + $data->{prev_version} = '0.0.1'; + $data->{prev_version} .= '-1' + if index($data->{version}, '-') > -1; + } $data->{distribution} ||= 'unstable'; $data->{description} ||= 'No Description Available'; $data->{author}||= 'Debian Lintian Maintainers <[email protected]>'; diff --git a/t/templates/tests/pedantic/debian/changelog.in b/t/templates/tests/pedantic/debian/changelog.in index 234f296..d8474d8 100644 --- a/t/templates/tests/pedantic/debian/changelog.in +++ b/t/templates/tests/pedantic/debian/changelog.in @@ -6,3 +6,12 @@ * Suppress "should close ITP bug" messages. (Closes: #123456) -- {$author} {$date} + +{$source} ({$prev_version}) {$distribution}; urgency=low + + * Lintian Test Suite. + * Test: {$testname} + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- {$author} {$prev_date} diff --git a/t/templates/tests/skel/debian/changelog.in b/t/templates/tests/skel/debian/changelog.in index 4626601..89304a2 100644 --- a/t/templates/tests/skel/debian/changelog.in +++ b/t/templates/tests/skel/debian/changelog.in @@ -3,6 +3,13 @@ * Lintian Test Suite. * Test: {$testname} + -- {$author} {$date} + +{$source} ({$prev_version}) {$distribution}; urgency=low + + * Lintian Test Suite. + * Test: {$testname} + * Suppress "should close ITP bug" messages. (Closes: #123456) - -- {$author} {$date} + -- {$author} {$prev_date} diff --git a/t/templates/tests/skel/debian/changelog.in b/t/tests/fields-version-bad/debian/debian/changelog.in similarity index 65% copy from t/templates/tests/skel/debian/changelog.in copy to t/tests/fields-version-bad/debian/debian/changelog.in index 4626601..bc7beb5 100644 --- a/t/templates/tests/skel/debian/changelog.in +++ b/t/tests/fields-version-bad/debian/debian/changelog.in @@ -3,6 +3,5 @@ * Lintian Test Suite. * Test: {$testname} - * Suppress "should close ITP bug" messages. (Closes: #123456) - -- {$author} {$date} + diff --git a/t/templates/tests/skel/debian/changelog.in b/t/tests/scripts-python2/debian/debian/changelog.in similarity index 99% copy from t/templates/tests/skel/debian/changelog.in copy to t/tests/scripts-python2/debian/debian/changelog.in index 4626601..63a92c6 100644 --- a/t/templates/tests/skel/debian/changelog.in +++ b/t/tests/scripts-python2/debian/debian/changelog.in @@ -6,3 +6,4 @@ * Suppress "should close ITP bug" messages. (Closes: #123456) -- {$author} {$date} + -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git

