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 authored and ysun committed Nov 30, 2023
1 parent 4b2d2fb commit 51a28e8
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 51a28e8

Please sign in to comment.