[PATCH 1/3] test: cmd_ut_category: raise a error when the test is not found

Simon Glass sjg at chromium.org
Sun Nov 22 00:07:43 CET 2020


On Thu, 19 Nov 2020 at 03:09, Patrick Delaunay <patrick.delaunay at st.com> wrote:
>
> Raise an error when test is not found, for example with manual test
> with bad test name, as following, doesn't raise an error
>
> => ut lib bad
> Failures: 0
>
> After the patch:
>
> => ut lib bad
> lib test bad not found
> Failures: 1
>
> This patch allows also to detect tests which don't respect the expected
> format with "prefix" used in cmd_ut_category and defined in ut_subtest
> (./test/py/conftest.py). When I execute "make qcheck" this patch detects
> 2 issues, corrected by the 2 next patches.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
> ---
>
>  test/cmd_ut.c | 7 +++++++
>  1 file changed, 7 insertions(+)

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


More information about the U-Boot mailing list