Skip to content

Commit fd7ce71

Browse files
JackThomson2Manciukic
authored andcommitted
test: Enable reset physical counter on AL
Enable the physical counter tests to run on amazon linux 2 or 2023 as the KVM support for these has been backported from 6.4. Signed-off-by: Jack Thomson <[email protected]>
1 parent 66cbec7 commit fd7ce71

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/integration_tests/functional/test_snapshot_basic.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -546,11 +546,13 @@ def test_vmgenid(guest_kernel_linux_6_1, rootfs, microvm_factory, snapshot_type)
546546
base_snapshot = snapshot
547547

548548

549-
# TODO add `global_props.host_os == "amzn2"` condition
550-
# once amazon linux kernels have patches.
551549
@pytest.mark.skipif(
552-
platform.machine() != "aarch64" or global_props.host_linux_version_tpl < (6, 4),
553-
reason="This is aarch64 specific test and should only be run on 6.4 and later kernels",
550+
platform.machine() != "aarch64"
551+
or (
552+
global_props.host_linux_version_tpl < (6, 4)
553+
and global_props.host_os not in ("amzn2", "amzn2023")
554+
),
555+
reason="This test requires aarch64 and either kernel 6.4+ or Amazon Linux",
554556
)
555557
def test_physical_counter_reset_aarch64(uvm_nano):
556558
"""

0 commit comments

Comments
 (0)