From: Victor Julien Date: Tue, 16 Jan 2018 11:07:53 +0000 (+0100) Subject: runner: treat missing pcap as condition to 'skip' X-Git-Tag: suricata-6.0.4~536 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f08a660eebd952f56384438b16f1a4ea53182d0;p=thirdparty%2Fsuricata-verify.git runner: treat missing pcap as condition to 'skip' This allows disabling of tests by renaming the pcap file to .disabled or similar. --- diff --git a/run.py b/run.py index 7dc796f2c..4fed5a408 100755 --- a/run.py +++ b/run.py @@ -393,7 +393,7 @@ class TestRunner: # Find pcaps. pcaps = glob.glob(os.path.join(self.directory, "*.pcap")) if not pcaps: - raise TestError("No pcap file found") + raise UnsatisfiedRequirementError("No pcap file found") elif len(pcaps) > 1: raise TestError("More than 1 pcap file found") args += ["-r", pcaps[0]]