[PATCH v2 7/8] patman: document how to run test suite via pytest

Simon Glass sjg at chromium.org
Mon Dec 19 20:20:50 CET 2022


On Mon, 19 Dec 2022 at 07:53, Maxim Cournoyer <maxim.cournoyer at gmail.com> wrote:
>
> Pytest offers useful features such as selecting tests by means of a
> regular expression, or running the pdb debugger upon encountering a
> test failure.
>
> Signed-off-by: Maxim Cournoyer <maxim.cournoyer at savoirfairelinux.com>
> ---
>
> (no changes since v1)
>
>  tools/patman/patman.rst | 6 ++++++
>  1 file changed, 6 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


>
> diff --git a/tools/patman/patman.rst b/tools/patman/patman.rst
> index 8c5c9cc2cc..b06399b459 100644
> --- a/tools/patman/patman.rst
> +++ b/tools/patman/patman.rst
> @@ -680,6 +680,12 @@ them:
>
>      $ tools/patman/patman test
>
> +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.
>
> --
> 2.38.1
>


More information about the U-Boot mailing list