aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/ci/run_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'xtesting/ci/run_tests.py')
-rw-r--r--xtesting/ci/run_tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/xtesting/ci/run_tests.py b/xtesting/ci/run_tests.py
index bc2b43d8..16e7ef16 100644
--- a/xtesting/ci/run_tests.py
+++ b/xtesting/ci/run_tests.py
@@ -321,5 +321,9 @@ def main():
logging.captureWarnings(True)
parser = RunTestsParser()
args = parser.parse_args(sys.argv[1:])
+ # Reset argv to prevent wrong usage by the underlying test framework
+ # e.g. pyats fails by expecting an arg to -p (publish to database) when
+ # called via Robot.run()
+ sys.argv = [sys.argv[0]]
runner = Runner()
return runner.main(**args).value