]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
tests-extra: fixes a bug that caused the application to crash on invalid exclude...
authorJan Hák <jan.hak@nic.cz>
Fri, 1 Jul 2022 11:29:35 +0000 (13:29 +0200)
committerYour Name <you@example.com>
Fri, 1 Jul 2022 12:41:43 +0000 (12:41 +0000)
tests-extra/runtests.py

index d2d6cfaca7b87f7e05d41c8f4b0aecbdfeac6d7c..9ac3b27ac6f5b74b1c3ac3eb0de41fb444104ffc 100755 (executable)
@@ -116,7 +116,7 @@ def parse_args(cmd_args):
     # Filter out excluded tests.
     for test, cases in excluded.items():
         if cases:
-            if included[test]:
+            if test in included:
                 for case in cases:
                     included[test].remove(case)
         else: