提交 7e6621a1 编写于 作者: H Heiko Schocher 提交者: Tom Rini

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: NHeiko Schocher <hs@denx.de>
Reviewed-by: NStephen Warren <swarren@nvidia.com>
上级 dafd6488
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册