From d30d4a801c165de838680bbea3c20ce88f600eb3 Mon Sep 17 00:00:00 2001 From: Peixiu Hou Date: Wed, 14 Aug 2024 22:00:46 +0800 Subject: [PATCH] Set the workaround of hv_kvm_unit_test about lm=off Remove the lm=off flag form hv_kvm_unit_test test Signed-off-by: Peixiu Hou --- qemu/tests/hv_kvm_unit_test.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qemu/tests/hv_kvm_unit_test.py b/qemu/tests/hv_kvm_unit_test.py index 4712879112..706b5833ab 100644 --- a/qemu/tests/hv_kvm_unit_test.py +++ b/qemu/tests/hv_kvm_unit_test.py @@ -23,6 +23,12 @@ def run(test, params, env): unit_tests_mapping = params["unit_tests_mapping"] skip_tests = params.get("skip_tests", "").split() cpu_flags = params["cpu_model_flags"] + # Add a workaround here, remove the lm=off,pae=on flags, + # since they will block this case tests. + flags_items = cpu_flags.split(",") + remove_items = ["lm=off", "pae=on"] + filtered_list = [item for item in flags_items if item not in remove_items] + cpu_flags = ",".join(filtered_list) cpu_model = cpu.get_qemu_best_cpu_model(params) cpu_param = cpu_model + cpu_flags