summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py4
-rw-r--r--scripts/automation/trex_control_plane/client/trex_stateless_sim.py6
2 files changed, 6 insertions, 4 deletions
diff --git a/scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py b/scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py
index 6e83c3ac..51dccd98 100644
--- a/scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py
+++ b/scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py
@@ -84,9 +84,9 @@ class CStlBasic_Test(functional_general_test.CGeneralFunctional_Test):
def run_sim (self, yaml, output, options = "", silent = False):
if output:
- user_cmd = "{0} -o {1} {2}".format(yaml, output, options)
+ user_cmd = "-f {0} -o {1} {2}".format(yaml, output, options)
else:
- user_cmd = "{0} {1}".format(yaml, options)
+ user_cmd = "-f {0} {1}".format(yaml, options)
cmd = "{0} {1} {2}".format(sys.executable,
self.stl_sim,
diff --git a/scripts/automation/trex_control_plane/client/trex_stateless_sim.py b/scripts/automation/trex_control_plane/client/trex_stateless_sim.py
index d980932a..1452cdd1 100644
--- a/scripts/automation/trex_control_plane/client/trex_stateless_sim.py
+++ b/scripts/automation/trex_control_plane/client/trex_stateless_sim.py
@@ -305,9 +305,11 @@ def unsigned_int (x):
def setParserOptions():
parser = argparse.ArgumentParser(prog="stl_sim.py")
- parser.add_argument("input_file",
+ parser.add_argument("-f",
+ dest ="input_file",
help = "input file in YAML or Python format",
- type = is_valid_file)
+ type = is_valid_file,
+ required=True)
parser.add_argument("-o",
dest = "output_file",