From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Fri, 6 May 2016 09:25:42 -0600 Subject: [U-Boot] [PATCH] test/py: fix NameError exception if bdi cmd is not supported In-Reply-To: <1462512831-29758-1-git-send-email-hs@denx.de> References: <1462512831-29758-1-git-send-email-hs@denx.de> Message-ID: <572CB776.1030104@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 05/05/2016 11:33 PM, 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. Reviewed-by: Stephen Warren Nit: The import statements were sorted before this patch.