]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
All skip to be a boolean, for easy skip by default.
authorJason Ish <jason.ish@oisf.net>
Wed, 20 Nov 2019 21:44:42 +0000 (15:44 -0600)
committerJason Ish <jason.ish@oisf.net>
Thu, 21 Nov 2019 17:09:24 +0000 (11:09 -0600)
run.py

diff --git a/run.py b/run.py
index b4bbe88ac97f14665ea658aec33fa1fe66a8e391..711491e61eeaf61900b0a99848cdf1a8ce6c1d47 100755 (executable)
--- a/run.py
+++ b/run.py
@@ -381,6 +381,10 @@ class TestRunner:
     def check_skip(self):
         if not "skip" in self.config:
             return
+        if isinstance(self.config["skip"], bool):
+            if self.config["skip"]:
+                raise UnsatisfiedRequirementError("skipped by default")
+            return
         for skip in self.config["skip"]:
 
             if "uid" in skip: