From: Tom Rini Date: Fri, 13 May 2016 16:44:49 -0400 Subject: [U-Boot] [PATCH v2] tests: py: fix NameError exception if bdi cmd is not supported In-Reply-To: <1462781304-18049-1-git-send-email-hs@denx.de> References: <1462781304-18049-1-git-send-email-hs@denx.de> Message-ID: <20160513204449.GF13571@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, May 09, 2016 at 10:08:24AM +0200, Heiko Schocher wrote: > 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 Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: