]> git.sur5r.net Git - u-boot/commit
test/py: fix NameError exception if bdi cmd is not supported
authorHeiko Schocher <hs@denx.de>
Fri, 6 May 2016 05:33:51 +0000 (07:33 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 27 May 2016 14:01:09 +0000 (10:01 -0400)
commit7e6621a1cae2d2442d3d7641ff1df17b3f03ad4b
treec4d6dc55bd0ff0999d4e8087eca9867dc98f04d2
parentdafd64888c21abc43edbe7634b8edaacf9e2fe5c
test/py: fix NameError exception if bdi cmd is not supported

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@denx.de>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
test/py/u_boot_utils.py