Skip to content

Commit 7904900

Browse files
committed
test: exclude no-acpi kernel from guest_kernel_linux_5_10 fixture
This fixture is used by tests that explicitly do not care about the specific guest kernel version (for example negative tests that ensure firecracker doesn't allow specific combinations of API requests), so do not run all these tests twice because of the no-acpi kernel. Signed-off-by: Patrick Roy <[email protected]>
1 parent 2360fcc commit 7904900

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/conftest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,10 @@ def rootfs_fxt(request, record_property):
386386
guest_kernel_fxt, params=kernel_params("vmlinux-4.14*")
387387
)
388388
guest_kernel_linux_5_10 = pytest.fixture(
389-
guest_kernel_fxt, params=kernel_params("vmlinux-5.10*")
389+
guest_kernel_fxt,
390+
params=filter(
391+
lambda kernel: "no-acpi" not in kernel.id, kernel_params("vmlinux-5.10*")
392+
),
390393
)
391394
guest_kernel_linux_6_1 = pytest.fixture(
392395
guest_kernel_fxt,

0 commit comments

Comments
 (0)