Verified Commit 7c1bf5fe authored by Baptiste Beauplat's avatar Baptiste Beauplat
Browse files

Merge branch 'fix/lintian-mask' into live



Signed-off-by: Baptiste Beauplat's avatarBaptiste Beauplat <lyknode@debian.org>
parents c8c37234 ab170cd4
Pipeline #412785 failed with stage
in 11 minutes and 47 seconds
......@@ -101,6 +101,12 @@ class PluginLintian(BasePlugin):
override_comments.append(tag[3:].strip())
continue
# Skip mask severity
if tag.startswith("M: "):
# Drop associated N:
override_comments.pop()
continue
severity, package, rest = tag.split(': ', 2)
lintian_severities.add(severity)
lintian_tag_data = rest.split()
......
......@@ -87,3 +87,12 @@ class TestPluginLintian(TestImporterController):
self.assertEqual(str(e.exception),
'lintian took too much time to run')
def test_lintian_mask(self):
outcome = 'Package has lintian informational tags'
self.import_source_package('lintian-mask')
self.assert_importer_succeeded()
self.assert_plugin_result_count('hello', 'lintian', 1)
self.assert_plugin_result('hello', 'lintian', outcome)
self.assert_plugin_severity('hello', 'lintian',
PluginSeverity.info)
../hello/Makefile
\ No newline at end of file
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
../../hello/debian/changelog
\ No newline at end of file
../../hello/debian/compat
\ No newline at end of file
../../hello/debian/control
\ No newline at end of file
../../hello/debian/copyright
\ No newline at end of file
../../hello/debian/rules
\ No newline at end of file
../../hello/debian/source
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment