From: Heiko Schocher Date: Mon, 9 May 2016 10:08:24 +0200 Subject: [U-Boot] [PATCH v2] tests: py: fix NameError exception if bdi cmd is not supported Message-ID: <1462781304-18049-1-git-send-email-hs@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Reviewed-by: Stephen Warren --- found on the corvus board, which does not support this command. For interests: I integrated test/py into tbot, and catch test/py results, see as a demo: http://xeidos.ddns.net/tests/test_db_auslesen.php Changes in v2: - add comment from Stephen Warren sort import statements test/py/u_boot_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/py/u_boot_utils.py b/test/py/u_boot_utils.py index 72d24e4..9d243e0 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 -- 2.5.5