[U-Boot] [PATCHv2 10/13] test/py: Rework test.py to be a different kind of wrapper

Simon Glass sjg at chromium.org
Thu Oct 24 00:59:20 UTC 2019


On Tue, 22 Oct 2019 at 21:20, Tom Rini <trini at konsulko.com> wrote:
>
> Now that we have moved to being based on pytest for python3 we need to
> make our test.py wrapper more robust in terms of only calling python3
> rather than possibly finding and using python2.  To do this, change from
> execvp()'ing pytest to invoking the package itself via python.  In the
> event that pytest is unavailable we still get a user-friendly error:
>
> pkg_resources.DistributionNotFound: The 'pytest' distribution was not found and is required by the application
>
> Cc: Stephen Warren <swarren at nvidia.com>
> Signed-off-by: Tom Rini <trini at konsulko.com>
> ---
> Changes in v2:
> - New patch
> ---
>  test/py/test.py | 20 ++++----------------
>  1 file changed, 4 insertions(+), 16 deletions(-)

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


More information about the U-Boot mailing list