Skip to content

Commit 8176a8a

Browse files
pb8obchalios
authored andcommitted
fix(test): use the name of the CPU template to find exceptions
Commit c44b0c6 was refactored in such a way that we could not find an exception for custom CPU templates. It was probably not noticed since the it requires a specific CPU in m5d. Fixes: c44b0c6 Signed-off-by: Pablo Barbáchano <[email protected]>
1 parent 3f3f6a9 commit 8176a8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration_tests/security/test_vulnerabilities.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ def configure_microvm(
5656
microvm.basic_config(vcpu_count=2, mem_size_mib=256, cpu_template=cpu_template)
5757
if custom_cpu_template:
5858
microvm.api.cpu_config.put(**custom_cpu_template["template"])
59-
microvm.cpu_template = cpu_template or custom_cpu_template
59+
microvm.cpu_template = cpu_template
60+
if cpu_template is None and custom_cpu_template is not None:
61+
microvm.cpu_template = custom_cpu_template["name"]
6062
microvm.add_net_iface()
6163
microvm.start()
6264
return microvm

0 commit comments

Comments
 (0)