[U-Boot] [PATCH v2] tests: py: fix NameError exception if bdi cmd is not supported

Tom Rini trini at konsulko.com
Fri May 13 22:44:49 CEST 2016


On Mon, May 09, 2016 at 10:08:24AM +0200, Heiko Schocher wrote:

> test/py raises an error, if a board has not enabled bdi command
> 
> >           pytest.skip('bdinfo command not supported')
> E           NameError: global name 'pytest' is not defined
> 
> import pytest in test/py/u_boot_utils.py fixes this.
> 
> Signed-off-by: Heiko Schocher <hs at denx.de>
> Reviewed-by: Stephen Warren <swarren at nvidia.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160513/adebec87/attachment.sig>


More information about the U-Boot mailing list