Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def test_cpu_cpuid_snapshot(microvm_factory, guest_kernel, rootfs, cpu_template_
"""
cpu_template_name = get_cpu_template_name(cpu_template_any)
if cpu_template_name not in MSR_SUPPORTED_TEMPLATES:
pytest.skip("This test does not support {cpu_template_name} template.")
pytest.skip(f"This test does not support {cpu_template_name} template.")

shared_names = SNAPSHOT_RESTORE_SHARED_NAMES

Expand Down Expand Up @@ -611,7 +611,7 @@ def test_cpu_cpuid_restore(microvm_factory, guest_kernel, cpu_template_any):
"""
cpu_template_name = get_cpu_template_name(cpu_template_any)
if cpu_template_name not in MSR_SUPPORTED_TEMPLATES:
pytest.skip("This test does not support {cpu_template_name} template.")
pytest.skip(f"This test does not support {cpu_template_name} template.")

shared_names = SNAPSHOT_RESTORE_SHARED_NAMES
snapshot_artifacts_dir = (
Expand Down Expand Up @@ -646,8 +646,8 @@ def test_cpu_template(uvm_plain_any, cpu_template_any, microvm_factory):
supported CPU templates.
"""
cpu_template_name = get_cpu_template_name(cpu_template_any)
if cpu_template_name not in ["T2", "T2S", "SPR_TO_T2_5.10", "SPR_TO_T2_6.1" "C3"]:
pytest.skip("This test does not support {cpu_template_name} template.")
if cpu_template_name not in ["T2", "T2S", "SPR_TO_T2_5.10", "SPR_TO_T2_6.1", "C3"]:
pytest.skip(f"This test does not support {cpu_template_name} template.")

test_microvm = uvm_plain_any
test_microvm.spawn()
Expand Down