]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
docs: python: add helpers to run unit tests
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 17 Mar 2026 18:09:21 +0000 (19:09 +0100)
committerJonathan Corbet <corbet@lwn.net>
Sun, 22 Mar 2026 21:02:29 +0000 (15:02 -0600)
commit023aabb6ccb298add344cab7c00c5f27b10319aa
treef6d579d56e8fefd1e812f119acfa2dd0e7178146
parent6108c809f4fd9dbb1a138ba4326d645cc3113a8d
docs: python: add helpers to run unit tests

While python internal libraries have support for unit tests, its
output is not nice. Add a helper module to improve its output.

I wrote this module last year while testing some scripts I used
internally. The initial skeleton was generated with the help of
LLM tools, but it was higly modified to ensure that it will work
as I would expect.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Message-ID: <37999041f616ddef41e84cf2686c0264d1a51dc9.1773074166.git.mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <d81be167b8cdeb003c1f8dcc7ad83a5ed2b520b6.1773770483.git.mchehab+huawei@kernel.org>
Documentation/tools/python.rst
Documentation/tools/unittest.rst [new file with mode: 0644]
tools/lib/python/unittest_helper.py [new file with mode: 0755]