Skip to content

Commit

Permalink
Set the workaround of hv_kvm_unit_test about lm=off
Browse files Browse the repository at this point in the history
Remove the lm=off flag form hv_kvm_unit_test test

Signed-off-by: Peixiu Hou <[email protected]>
  • Loading branch information
peixiu committed Sep 18, 2024
1 parent 6ac6e9f commit d30d4a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions qemu/tests/hv_kvm_unit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d30d4a8

Please sign in to comment.