[lintian] 01/01: c/testsuite: Special case "Test-Dir" a single dot
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit ba4c04908e2b83ee38b3be7123e1d658fd426457
Author: Niels Thykier <niels@thykier.net>
Date: Thu Apr 20 12:46:48 2017 +0000
c/testsuite: Special case "Test-Dir" a single dot
Signed-off-by: Niels Thykier <niels@thykier.net>
---
checks/testsuite.pm | 3 ++-
debian/changelog | 3 +++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/checks/testsuite.pm b/checks/testsuite.pm
index 60495da..b25b024 100644
--- a/checks/testsuite.pm
+++ b/checks/testsuite.pm
@@ -198,7 +198,8 @@ sub check_control_paragraph {
sub check_test_file {
my ($info, $directory, $name, $line) = @_;
- my $path = "$directory/$name";
+ # Special case with "Tests-Directory: ." (see #849880)
+ my $path = $directory eq '.' ? $name : "$directory/$name";
my $index = $info->index($path);
if ($name !~ m{^ [ [:alnum:] \+ \- \. / ]++ $}xsm) {
diff --git a/debian/changelog b/debian/changelog
index 01594a1..b0988ca 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -47,6 +47,9 @@ lintian (2.5.51) UNRELEASED; urgency=medium
+ [NT] Apply patch from Lucas Kanashiro to add a tag for recommending
packagers to create an autopkgtest for their package.
(Closes: #859467)
+ + [NT] Fix false-positive "missing-runtime-test-file" when the
+ "Tests-Directory" field is set to a single dot. Thanks to
+ Ian Jackson for reporting the issue. (Closes: #849880)
* coll/debian-readme{,desc}:
+ [NT] Remove. Merge what little functionality it offers into the
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: