Re: [PATCH v2 1/2] kunit: tool: test: Rename test_data_path() to _test_data_path()
From: Shuah Khan
Date: Wed Jan 07 2026 - 12:28:24 EST
On 1/6/26 18:59, David Gow wrote:
From: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
Running the KUnit testsuite through pytest fails, as the function
test_data_path() is recognized as a test function. Its execution fails
as pytest tries to resolve the 'path' argument as a fixture which does
not exist.
Rename the function, so the helper function is not incorrectly
recognized as a test function.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
Reviewed-by: David Gow <davidgow@xxxxxxxxxx>
Signed-off-by: David Gow <davidgow@xxxxxxxxxx>
---
Changes since v1:
https://lore.kernel.org/linux-kselftest/20251230-kunit-pytest-v1-1-e2dae0dae200@xxxxxxxxxxxxx/
- Rebase on top of "kunit: tool: Add test for nested test result
reporting"
https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git/commit/?h=kunit&id=0c5b86c67fb6898d02c8f92de884186297fd302f
Thank you.
Applied to linux kselftest kunit repo for Linux 6.20-rc1
thanks,
-- Shuah