From: Jason Ish Date: Mon, 23 Aug 2021 22:17:29 +0000 (-0600) Subject: runner: remove 'config' requires X-Git-Tag: suricata-6.0.4~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62e15b183e2b58508eafabab8e0d0f06c67b2779;p=thirdparty%2Fsuricata-verify.git runner: remove 'config' requires 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. --- diff --git a/run.py b/run.py index 2900c84db..10c5171b4 100755 --- 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