From 8b940cad0e665aea20e4367b557bc52fdba6ea67 Mon Sep 17 00:00:00 2001 From: Hongyu Ning Date: Tue, 28 Nov 2023 10:04:40 +0800 Subject: [PATCH] [guest-test] Bug Fix: update vm_type with override value from test_params.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 --- guest-test/qemu_get_config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/guest-test/qemu_get_config.py b/guest-test/qemu_get_config.py index 28a98ae..3233a39 100755 --- a/guest-test/qemu_get_config.py +++ b/guest-test/qemu_get_config.py @@ -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: