Skip to content

Commit 76d69fa

Browse files
r41k0uclaude
andcommitted
Tests: Recognise a vmlinux subdirectory under the ported selftests
Ports of kernel selftests live in tests/passing_tests/selftests/. Those 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 on any machine lacking one, CI included. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent c2de7da commit 76d69fa

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+
"passing_tests/selftests/vmlinux",
13+
}
1114
VMLINUX_TEST_DIRS_FAILING = {
1215
"failing_tests/vmlinux",
1316
"failing_tests/xdp",

0 commit comments

Comments
 (0)