summaryrefslogtreecommitdiff
path: root/tools/patman
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-12-19 17:32:44 -0500
committerSimon Glass <sjg@chromium.org>2023-01-05 19:21:57 -0700
commitf393f59e5d222711b9f35a8d2d32f4ba374d4134 (patch)
treed96de6d3e49730a5a911185f85ea04671c8af5e1 /tools/patman
parent52c1c333eaade606be03a6087a348f8f37843f62 (diff)
downloadu-boot-f393f59e5d222711b9f35a8d2d32f4ba374d4134.tar.gz
patman: document how to run test suite via pytest
Pytest offers useful features such as selecting tests by means of a regular expression, or running the pdb debugger upon encountering a test failure. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Maxim Cournoyer <maxim.cournoyer@savoirfairelinux.com>
Diffstat (limited to 'tools/patman')
-rw-r--r--tools/patman/patman.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/patman/patman.rst b/tools/patman/patman.rst
index ff4c8b3ed2..395fc0cd75 100644
--- a/tools/patman/patman.rst
+++ b/tools/patman/patman.rst
@@ -684,6 +684,12 @@ Note that since the test suite depends on data files only available in
the git checkout, the `test` command is hidden unless `patman` is
invoked from the U-Boot git repository.
+Alternatively, you can run the test suite via Pytest:
+
+.. code-block:: bash
+
+ $ cd tools/patman && pytest
+
Error handling doesn't always produce friendly error messages - e.g.
putting an incorrect tag in a commit may provide a confusing message.