Skip to content

Commit 7b01554

Browse files
committed
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 a23a7d1 commit 7b01554

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/integration_tests/functional/test_snapshot_basic.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -513,12 +513,13 @@ def test_vmgenid(guest_kernel_linux_6_1, rootfs, microvm_factory, snapshot_type)
513513
# snapshots we have resumed
514514
check_vmgenid_update_count(vm, i + 1)
515515

516-
517-
# TODO add `global_props.host_os == "amzn2"` condition
518-
# once amazon linux kernels have patches.
519516
@pytest.mark.skipif(
520-
platform.machine() != "aarch64" or global_props.host_linux_version_tpl < (6, 4),
521-
reason="This is aarch64 specific test and should only be run on 6.4 and later kernels",
517+
not platform.machine() == "aarch64"
518+
or (
519+
global_props.host_linux_version_tpl < (6, 4)
520+
and global_props.host_os not in ("amzn2", "amzn2023")
521+
),
522+
reason="This test requires aarch64 and either kernel 6.4+ or Amazon Linux"
522523
)
523524
def test_physical_counter_reset_aarch64(uvm_nano):
524525
"""

0 commit comments

Comments
 (0)