From: Maxim Cournoyer Date: Mon, 19 Dec 2022 22:32:44 +0000 (-0500) Subject: patman: document how to run test suite via pytest X-Git-Tag: baikal/mips/sdk5.8.2~5^2~97^2~2^2~8 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=ed4f8f1f492c9f440612e78e98f72222fc244b5e;p=uboot.git 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 Signed-off-by: Maxim Cournoyer --- 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.