Skip to content
Snippets Groups Projects
Commit 8332553f authored by Takuya ASADA's avatar Takuya ASADA Committed by Pekka Enberg
Browse files

run.py: add --qemu-path argument


Add qemu command path argument to test different versions of qemu.

Signed-off-by: default avatarTakuya ASADA <syuu@cloudius-systems.com>
Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
parent c4ebb11a
No related branches found
No related tags found
No related merge requests found
......@@ -174,7 +174,7 @@ def start_osv_qemu(options):
qemu_env = os.environ.copy()
qemu_env['OSV_BRIDGE'] = options.bridge
cmdline = ["qemu-system-x86_64"] + args
cmdline = [options.qemu_path] + args
if options.dry_run:
print(format_args(cmdline))
else:
......@@ -439,6 +439,9 @@ if (__name__ == "__main__"):
help="enable collecting of backtrace at tracepoints")
parser.add_argument("--sampler", action="store", nargs='?', const='1000',
help="start sampling profiler. optionally specify sampling frequency in Hz")
parser.add_argument("--qemu-path", action="store",
default="qemu-system-x86_64",
help="specify qemu command path")
cmdargs = parser.parse_args()
cmdargs.opt_path = "debug" if cmdargs.debug else "release"
cmdargs.image_file = os.path.abspath(cmdargs.image or "build/%s/usr.img" % cmdargs.opt_path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment