From 7f08a660eebd952f56384438b16f1a4ea53182d0 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 16 Jan 2018 12:07:53 +0100 Subject: [PATCH] runner: treat missing pcap as condition to 'skip' This allows disabling of tests by renaming the pcap file to .disabled or similar. --- run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]] -- 2.47.2