[lintian] 01/01: cruft: Fix istestset() to correctly exclude lintian's tests
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 13a373dd51804bef7ca71ba8bf02acacd54d751c
Author: Niels Thykier <niels@thykier.net>
Date: Sun Jan 24 12:18:43 2016 +0000
cruft: Fix istestset() to correctly exclude lintian's tests
Signed-off-by: Niels Thykier <niels@thykier.net>
---
checks/cruft.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/checks/cruft.pm b/checks/cruft.pm
index ef407fe..d824809 100644
--- a/checks/cruft.pm
+++ b/checks/cruft.pm
@@ -540,7 +540,8 @@ sub check_debian_dir {
# testset exception
sub istestset {
my ($dirname) = @_;
- return $dirname =~ m{ (:?\A|/) t (?: est (?: s (?: et)?+ )?+ )?+ /?\Z}xsm;
+ return $dirname
+ =~ m{ (:?\A|/) t (?: est (?: s (?: et)?+ )?+ )?+ (?: \Z | /)}xsm;
}
# Check each file in the source package for problems. By the time we get to
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: