diff options
author | Heiko Schocher <hs@denx.de> | 2016-05-06 07:33:51 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-05-27 10:01:09 -0400 |
commit | 7e6621a1cae2d2442d3d7641ff1df17b3f03ad4b (patch) | |
tree | c4d6dc55bd0ff0999d4e8087eca9867dc98f04d2 /test/py/u_boot_utils.py | |
parent | dafd64888c21abc43edbe7634b8edaacf9e2fe5c (diff) |
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>
Diffstat (limited to 'test/py/u_boot_utils.py')
-rw-r--r-- | test/py/u_boot_utils.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/py/u_boot_utils.py b/test/py/u_boot_utils.py index 9d243e047b..6a6b2ec0e6 100644 --- a/test/py/u_boot_utils.py +++ b/test/py/u_boot_utils.py @@ -10,6 +10,7 @@ import os.path import pytest import sys import time +import pytest def md5sum_data(data): """Calculate the MD5 hash of some data. |