Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qemu_get_config.py: fix name 'PMU' is not defined issue #121

Merged
merged 1 commit into from
Oct 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions guest-test/qemu_get_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,37 +53,37 @@
# test_params.py is generated by test_launcher.sh for both qemu_runner.py and test_executor.sh
# O-list variables default value from qemu.config.json
vm_type = qemu_config["common"]["vm_type"]
if PMU is not None:
if 'PMU' in dir():
pmu = PMU
else:
pmu = qemu_config["common"]["pmu"]

if VCPU is not None:
if 'VCPU' in dir():
cpus = VCPU
else:
cpus = qemu_config["common"]["cpus"]

if SOCKETS is not None:
if 'SOCKETS' in dir():
sockets = SOCKETS
else:
sockets = qemu_config["common"]["sockets"]

if MEM is not None:
if 'MEM' in dir():
mem = MEM
else:
mem = qemu_config["common"]["mem"]

if CMDLINE is not None:
if 'CMDLINE' in dir():
cmdline = CMDLINE
else:
cmdline = qemu_config["common"]["cmdline"]

if DEBUG is not None:
if 'DEBUG' in dir():
debug = DEBUG
else:
debug = qemu_config["common"]["debug"]

if TESTCASE is not None:
if 'TESTCASE' in dir():
testcase = TESTCASE
else:
print("No TESTCASE info found, can't run any test!")
Expand Down