]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kunit: tool: test: Rename test_data_path() to _test_data_path()
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Wed, 7 Jan 2026 01:59:33 +0000 (09:59 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 7 Jan 2026 17:00:41 +0000 (10:00 -0700)
commit1cabad3a00ab2e3d6bf19c5ab8fc9212d0b81e18
tree1e3593e48f6248a8b00ab07efa82700e8d0503fb
parentab150c2bbafe9425759eca1e45e08d4ad1456818
kunit: tool: test: Rename test_data_path() to _test_data_path()

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.

Link: https://lore.kernel.org/r/20260107015936.2316047-1-davidgow@google.com
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/kunit/kunit_tool_test.py