From: Victor Julien Date: Fri, 29 Mar 2019 14:04:22 +0000 (+0100) Subject: runner: use --disable-detection when no rules in test X-Git-Tag: suricata-6.0.4~472 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12894cdbe1e7504b9767fce53b5edf0041412930;p=thirdparty%2Fsuricata-verify.git runner: use --disable-detection when no rules in test --- diff --git a/run.py b/run.py index e50f24f19..2eae876be 100755 --- a/run.py +++ b/run.py @@ -621,7 +621,7 @@ class TestRunner: # Find rules. rules = glob.glob(os.path.join(self.directory, "*.rules")) if not rules: - args += ["-S", "/dev/null"] + args.append("--disable-detection") elif len(rules) == 1: args += ["-S", rules[0]] else: