]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
runner: allow --outdir to be relative (ie: ./output)
authorJason Ish <ish@unx.ca>
Fri, 19 Jan 2018 21:27:41 +0000 (15:27 -0600)
committerJason Ish <ish@unx.ca>
Fri, 19 Jan 2018 21:27:41 +0000 (15:27 -0600)
run.py

diff --git a/run.py b/run.py
index 7aa22206400a6d3623ba0438a2fdbed344389a71..9e55000093359347be78c6f0bd2f4610058718d5 100755 (executable)
--- a/run.py
+++ b/run.py
@@ -564,7 +564,7 @@ def main():
 
         outdir = os.path.join(dirpath, "output")
         if args.outdir:
-            outdir = os.path.join(args.outdir, name)
+            outdir = os.path.join(os.path.realpath(args.outdir), name)
 
         test_runner = TestRunner(
             cwd, dirpath, outdir, suricata_config, args.verbose)