aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-01-20 22:47:51 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2023-01-20 22:49:34 +0200
commit02804d8cf4be687f461066a3025bcad9210964b5 (patch)
tree1b050274226da5e022d953c267c6d26c6a5aef30 /tests
parentGitPkgCommitsCheck: catch SRC_URI mistakes (diff)
downloadpkgcheck-02804d8cf4be687f461066a3025bcad9210964b5.tar.gz
pkgcheck-02804d8cf4be687f461066a3025bcad9210964b5.tar.bz2
pkgcheck-02804d8cf4be687f461066a3025bcad9210964b5.zip
scan: fix quiet mode with keywords
Resolves: https://github.com/pkgcore/pkgcheck/issues/413 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/scripts/test_pkgcheck_scan.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/scripts/test_pkgcheck_scan.py b/tests/scripts/test_pkgcheck_scan.py
index 7d191ee5..e7b024dd 100644
--- a/tests/scripts/test_pkgcheck_scan.py
+++ b/tests/scripts/test_pkgcheck_scan.py
@@ -499,6 +499,11 @@ class TestPkgcheckScan:
results = list(self.scan(self.scan_args + ["-r", repo.location, arg]))
assert not results
+ results = list(
+ self.scan(self.scan_args + ["-r", repo.location, "-q", "-k=-UnknownKeywords"])
+ )
+ assert not results
+
def test_explict_skip_check(self):
"""SkipCheck exceptions are raised when triggered for explicitly enabled checks."""
error = "network checks not enabled"