]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
runner: remove 'config' requires
authorJason Ish <jason.ish@oisf.net>
Mon, 23 Aug 2021 22:17:29 +0000 (16:17 -0600)
committerJason Ish <jason.ish@oisf.net>
Mon, 23 Aug 2021 22:17:29 +0000 (16:17 -0600)
This is not used, and not documented and did have a spurious
debug line.  I think it was an unfinished prototype that
never got used.

run.py

diff --git a/run.py b/run.py
index 2900c84dbdaee2e3ee1b14851c71dd7a6fb8f861..10c5171b496bb57e3463107e945d21fee5e70d4c 100755 (executable)
--- a/run.py
+++ b/run.py
@@ -1,6 +1,6 @@
 #! /usr/bin/env python3
 #
-# Copyright (C) 2017-2020 Open Information Security Foundation
+# Copyright (C) 2017-2021 Open Information Security Foundation
 #
 # Permission is hereby granted, free of charge, to any person
 # obtaining a copy of this software and associated documentation files
@@ -555,21 +555,6 @@ class TestRunner:
                         raise UnsatisfiedRequirementError(
                             "requires script returned false")
 
-            elif key == "config":
-                for pattern, need_val in requires["config"].items():
-                    found = False
-                    for key, val in self.suricata_config.config.items():
-                        if re.match(pattern, key):
-                            print("%s -> %s" % (pattern, key))
-                            if str(need_val) != str(val):
-                                raise UnsatisfiedRequirementError(
-                                    "requires %s = %s" % (
-                                        key, need_val))
-                    print(found)
-                    if not found:
-                        raise UnsatisfiedRequirementError(
-                            "requires %s = %s" % (pattern, need_val))
-
             elif key == "pcap":
                 # Handle below...
                 pass