From a64f01d6b3efb79a1c47b436d39bcc02fe129b3e Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Fri, 14 Aug 2026 22:34:07 +0530 Subject: [PATCH] Tests: Register a vmlinux subdirectory under kernel_selftest_equivalent Ports that import from vmlinux need the same treatment as tests/passing_tests/vmlinux/ -- skipped, not failed, when no vmlinux.py has been generated for the running kernel. Without this they fail outright wherever one is absent, CI included. Co-Authored-By: Claude Opus 5 (1M context) --- tests/framework/collector.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/framework/collector.py b/tests/framework/collector.py index 856e4b0..59b9608 100644 --- a/tests/framework/collector.py +++ b/tests/framework/collector.py @@ -7,7 +7,10 @@ from tests.framework.bpf_test_case import BpfTestCase TESTS_DIR = Path(__file__).parent.parent CONFIG_FILE = TESTS_DIR / "test_config.toml" -VMLINUX_TEST_DIRS_PASSING = {"passing_tests/vmlinux"} +VMLINUX_TEST_DIRS_PASSING = { + "passing_tests/vmlinux", + "kernel_selftest_equivalent/vmlinux", +} VMLINUX_TEST_DIRS_FAILING = { "failing_tests/vmlinux", "failing_tests/xdp",