Skip to content

Commit 463622b

Browse files
r41k0uclaude
andcommitted
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) <noreply@anthropic.com>
1 parent 51dc21d commit 463622b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/framework/collector.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
TESTS_DIR = Path(__file__).parent.parent
88
CONFIG_FILE = TESTS_DIR / "test_config.toml"
99

10-
VMLINUX_TEST_DIRS_PASSING = {"passing_tests/vmlinux"}
10+
VMLINUX_TEST_DIRS_PASSING = {
11+
"passing_tests/vmlinux",
12+
"kernel_selftest_equivalent/vmlinux",
13+
}
1114
VMLINUX_TEST_DIRS_FAILING = {
1215
"failing_tests/vmlinux",
1316
"failing_tests/xdp",

0 commit comments

Comments
 (0)