Skip to content

Commit

Permalink
Merge remote-tracking branch 'ldoktor/qemu-bin'
Browse files Browse the repository at this point in the history
  • Loading branch information
clebergnu committed Dec 2, 2016
2 parents f82de04 + f6f6602 commit 49c5dfa
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions avocado_vt/plugins/vt.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,18 @@ def _str_or_none(arg):
except (RuntimeError, utils_path.CmdNotFoundError):
qemu_bin_path = None
qemu_bin = settings.get_value('vt.qemu', 'qemu_bin',
default=qemu_bin_path)
default=None)
if qemu_bin is None: # Allow default to be None when not set in setting
default_qemu_bin = None
qemu_bin = qemu_bin_path
else:
default_qemu_bin = qemu_bin
parser.add_argument("--vt-qemu-bin", action="store", dest="vt_qemu_bin",
default=qemu_bin, help="Path to a custom qemu binary "
"to be tested. If --vt-config is provided and this "
"flag is omitted, no attempt to set the qemu binaries "
"will be made. Current: %s" % _str_or_none(qemu_bin))
default=default_qemu_bin, help="Path to a custom qemu"
" binary to be tested. If --vt-config is provided and"
" this flag is omitted, no attempt to set the qemu "
"binaries will be made. Current: %s"
% _str_or_none(qemu_bin))
qemu_dst = settings.get_value('vt.qemu', 'qemu_dst_bin',
default=qemu_bin_path)
parser.add_argument("--vt-qemu-dst-bin", action="store",
Expand Down

0 comments on commit 49c5dfa

Please sign in to comment.