Skip to content

Commit

Permalink
c2t: -q/--qemu CLI option that overwrites the config option
Browse files Browse the repository at this point in the history
Signed-off-by: Efimov Vasily <[email protected]>
  • Loading branch information
laerreal committed Sep 22, 2020
1 parent 146653d commit 4ac42da
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions c2t.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 4ac42da

Please sign in to comment.