From 4ac42da3b705751c46281998bb7eddb847fdff46 Mon Sep 17 00:00:00 2001 From: Efimov Vasily Date: Tue, 22 Sep 2020 22:18:57 +0300 Subject: [PATCH] c2t: -q/--qemu CLI option that overwrites the config option Signed-off-by: Efimov Vasily --- c2t.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/c2t.py b/c2t.py index b444ee11c..38611651b 100755 --- a/c2t.py +++ b/c2t.py @@ -767,6 +767,11 @@ def main(): metavar = "N", help = "stop on N-th error, 0 - no stop mode" ) + parser.add_argument("-q", "--qemu", + nargs = "?", + metavar = "executable", + help = "ignore the option in config" + ) args = parser.parse_args() @@ -813,6 +818,9 @@ def main(): verify_config_components(config) + if args.qemu: + c2t_cfg.qemu.run.executable = args.qemu + incl, regexp, tests = args.regexps.find_files(C2T_TEST_DIR) if not tests: parser.error("no matches in {dir} with {var} {regexp}".format(