Skip to content

Commit

Permalink
[guest-test] Bug Fix: update vm_type with override value from test_pa…
Browse files Browse the repository at this point in the history
…rams.py if passed

update vm_type with override value from test_params.py if passed,
otherwise keep default value from qemu.config.json

[Test Components] tdx
[Test Types] any
[Supported Devices] spr,emr,gnr,srf

Signed-off-by: Hongyu Ning <[email protected]>
  • Loading branch information
hongyuni committed Nov 28, 2023
1 parent 189f232 commit 8b940ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion guest-test/qemu_get_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@
# pre-config O-list variables' values could be override by test_params.py if passed in
# 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 VM_TYPE in dir():
vm_type = vm_type
else:
vm_type = qemu_config["common"]["vm_type"]

if 'PMU' in dir():
pmu = PMU
else:
Expand Down

0 comments on commit 8b940ca

Please sign in to comment.