summaryrefslogtreecommitdiff
path: root/test/py
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2016-05-09 10:08:24 +0200
committerTom Rini <trini@konsulko.com>2016-05-13 09:17:33 -0400
commitb8218a9146814ad1dba0c21facddce9adca680ef (patch)
tree02218f59ffd64e756a6146e5b68bf779fc3b79eb /test/py
parent1ea4fac5a34604e67504ee6537bb01e809528cd4 (diff)
downloadu-boot-b8218a9146814ad1dba0c21facddce9adca680ef.tar.gz
u-boot-b8218a9146814ad1dba0c21facddce9adca680ef.tar.bz2
u-boot-b8218a9146814ad1dba0c21facddce9adca680ef.zip
tests: 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>
Diffstat (limited to 'test/py')
-rw-r--r--test/py/u_boot_utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/py/u_boot_utils.py b/test/py/u_boot_utils.py
index 72d24e42aa..9d243e047b 100644
--- a/test/py/u_boot_utils.py
+++ b/test/py/u_boot_utils.py
@@ -7,6 +7,7 @@
import hashlib
import os
import os.path
+import pytest
import sys
import time