]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
runner: rename --dir to --testdir
authorVictor Julien <victor@inliniac.net>
Thu, 18 Jan 2018 17:55:38 +0000 (18:55 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 19 Jan 2018 21:11:15 +0000 (22:11 +0100)
run.py

diff --git a/run.py b/run.py
index ff8e8828ae6cb5f97c76e5520f09181b58c38eed..7aa22206400a6d3623ba0438a2fdbed344389a71 100755 (executable)
--- a/run.py
+++ b/run.py
@@ -508,7 +508,7 @@ def main():
                         help="Force running of skipped tests")
     parser.add_argument("--fail", action="store_true",
                         help="Exit on test failure")
-    parser.add_argument("--dir", action="store",
+    parser.add_argument("--testdir", action="store",
                         help="Runs tests from custom directory")
     parser.add_argument("--outdir", action="store",
                         help="Outputs to custom directory")
@@ -534,8 +534,8 @@ def main():
     suricata_config = SuricataConfig(get_suricata_version())
 
     tdir = os.path.join(TOPDIR, "tests")
-    if args.dir:
-        tdir = os.path.abspath(args.dir)
+    if args.testdir:
+        tdir = os.path.abspath(args.testdir)
 
     # First gather the tests so we can run them in alphabetic order.
     tests = []