mirror of
https://github.com/torvalds/linux.git
synced 2026-09-14 16:10:02 +02:00
`_list_tests()` runs the kernel to list tests, strips printk timestamp
lines via `extract_tap_lines()`, then drops the dummy TAP header from
the cleaned `lines`. However the subsequent regex filter mistakenly
operates on the original `output` instead of the cleaned `lines`. When
the kernel output includes timestamp prefixes (common with UML or slower
setups), e.g.:
[ 0.100000] suite.test1
[ 0.100000] suite.test2
the anchored regex `^[^\s.]+\.[^\s.]+$` rejects them and `--list_tests`
returns an empty list.
Filter `lines` instead of `output`, matching the behavior of the
adjacent `_list_tests_attr()` which already returns the cleaned list.
Add a regression test with timestamp-prefixed input to verify the fix.
Link: https://lore.kernel.org/r/20260803190059.36491-1-mohammad.abukhader@hotmail.com
Fixes:
|
||
|---|---|---|
| .. | ||
| configs | ||
| qemu_configs | ||
| test_data | ||
| .gitignore | ||
| kunit_config.py | ||
| kunit_json.py | ||
| kunit_junit.py | ||
| kunit_kernel.py | ||
| kunit_parser.py | ||
| kunit_printer.py | ||
| kunit_tool_test.py | ||
| kunit-completion.sh | ||
| kunit.py | ||
| mypy.ini | ||
| qemu_config.py | ||
| run_checks.py | ||