From: Jason Ish Date: Fri, 29 Apr 2022 16:14:43 +0000 (-0600) Subject: runner: convert relative pcap filenames to full path X-Git-Tag: suricata-5.0.10~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4de0ff8a1300c7506a9b8bcea822a42901582d00;p=thirdparty%2Fsuricata-verify.git runner: convert relative pcap filenames to full path Allows copying and pasting the `cmdline` file when relative pcap file names are used. --- diff --git a/run.py b/run.py index 1c1763d17..b1a46be5d 100755 --- a/run.py +++ b/run.py @@ -798,7 +798,7 @@ class TestRunner: # Find pcaps. if "pcap" in self.config: - args += ["-r", self.config["pcap"]] + args += ["-r", os.path.realpath(os.path.join(self.directory, self.config["pcap"]))] else: pcaps = glob.glob(os.path.join(self.directory, "*.pcap")) pcaps += glob.glob(os.path.join(self.directory, "*.pcapng"))