From: Eric Leblond Date: Thu, 1 Aug 2019 19:28:29 +0000 (+0200) Subject: more features detection in run.py X-Git-Tag: suricata-6.0.4~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63ecdd36be4231490788b10d401fb30236198e5a;p=thirdparty%2Fsuricata-verify.git more features detection in run.py --- diff --git a/run.py b/run.py index 636a5f060..d6da6123c 100755 --- a/run.py +++ b/run.py @@ -226,9 +226,18 @@ class SuricataConfig: def load_build_info(self): output = subprocess.check_output([suricata_bin, "--build-info"]) + start_support = False for line in output.splitlines(): if line.decode().startswith("Features:"): self.features = set(line.decode().split()[1:]) + if "Suricata Configuration" in line.decode(): + start_support = True + if start_support and "support:" in line.decode(): + (fkey, val) = line.decode().split(" support:") + fkey = fkey.strip() + val = val.strip() + if val.startswith("yes"): + self.features.add(fkey) def load_config(self, config_filename): output = subprocess.check_output([