diff --git a/guest-test/qemu_get_config.py b/guest-test/qemu_get_config.py index 17adcf0..d9e906d 100755 --- a/guest-test/qemu_get_config.py +++ b/guest-test/qemu_get_config.py @@ -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!")