[lintian] 02/03: Also match Make's "ignore result" prefix.
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository lintian.
commit 38f745580cffcc421b9a07a3268aedae113a2b01
Author: Chris Lamb <lamby@debian.org>
Date: Tue Feb 6 18:26:54 2018 +0000
Also match Make's "ignore result" prefix.
---
checks/rules.pm | 2 +-
.../debian/debian/rules | 8 ++++++++
.../desc | 5 +++++
.../tags | 0
4 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/checks/rules.pm b/checks/rules.pm
index 58ce0ba..219b677 100644
--- a/checks/rules.pm
+++ b/checks/rules.pm
@@ -443,7 +443,7 @@ sub run {
}
if (my $line = $overridden{'dh_auto_test'}) {
- my @lines = grep { $_ !~ m/^\t\s*(?::|dh_auto_test|echo)\s+/ }
+ my @lines = grep { $_ !~ m/^\t\s*-?(?::|dh_auto_test|echo)\s+/ }
@{$rules_per_target{'override_dh_auto_test'}};
tag 'override_dh_auto_test-does-not-check-DEB_BUILD_PROFILES',
"(line $line)"
diff --git a/t/tests/rules-dh-auto-test-does-not-check-deb-build-options-unrel-f/debian/debian/rules b/t/tests/rules-dh-auto-test-does-not-check-deb-build-options-unrel-f/debian/debian/rules
new file mode 100755
index 0000000..ac1a1d0
--- /dev/null
+++ b/t/tests/rules-dh-auto-test-does-not-check-deb-build-options-unrel-f/debian/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+# Ignore result
+override_dh_auto_test:
+ -dh_auto_test -- VERBOSE=1
diff --git a/t/tests/rules-dh-auto-test-does-not-check-deb-build-options-unrel-f/desc b/t/tests/rules-dh-auto-test-does-not-check-deb-build-options-unrel-f/desc
new file mode 100644
index 0000000..a906b09
--- /dev/null
+++ b/t/tests/rules-dh-auto-test-does-not-check-deb-build-options-unrel-f/desc
@@ -0,0 +1,5 @@
+Testname: rules-dh-auto-test-does-not-check-deb-build-options-unrel-f
+Version: 1.0
+Description: Test for missing checks for DEB_BUILD_PROFILES (false-positive)
+Test-Against:
+ override_dh_auto_test-does-not-check-DEB_BUILD_PROFILES
diff --git a/t/tests/rules-dh-auto-test-does-not-check-deb-build-options-unrel-f/tags b/t/tests/rules-dh-auto-test-does-not-check-deb-build-options-unrel-f/tags
new file mode 100644
index 0000000..e69de29
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: