Skip to content

kunit: tool: test: Allow running with pytest

Thomas Weißschuh linux-kselftest lkml 2 versions – New

Get series with b4
b4 am [email protected] change-id 20251230-kunit-pytest-259a1eb36a42

Versions newest first

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Rebase onto current kselftest/kunit branch
- Pick up review tags from LKML
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kunit: tool: test: Rename test_data_path() to _test_data_path()tools/testing/kunit/kunit_tool_test.py+28 -280 replies
2/2kunit: tool: test: Don't rely on implicit working directory changetools/testing/kunit/kunit_tool_test.py+3 -20 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDavid Gow
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] kunit: tool: test: Allow running with pytest

pytest can run unittest-based testsuites, like kunit_tool_test.py. It has a more features than the standard runner. Unfortunately a few minor issues currently break this.

Adapt the testsuite to work with pytest.

---
Changes in v2:
- Rebase onto current kselftest/kunit branch
- Pick up review tags from LKML
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Thomas Weißschuh (2):
kunit: tool: test: Rename test_data_path() to _test_data_path()
kunit: tool: test: Don't rely on implicit working directory change

 tools/testing/kunit/kunit_tool_test.py | 61 +++++++++++++++++-----------------
 1 file changed, 31 insertions(+), 30 deletions(-)

---
base-commit: ab150c2bbafe9425759eca1e45e08d4ad1456818
change-id: 20251230-kunit-pytest-259a1eb36a42

Best regards,

Signature · 1 line
Thomas Weißschuh <[email protected]>