From b8218a9146814ad1dba0c21facddce9adca680ef Mon Sep 17 00:00:00 2001
From: Heiko Schocher <hs@denx.de>
Date: Mon, 9 May 2016 10:08:24 +0200
Subject: [PATCH] tests: 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>
---
 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 72d24e42aa3..9d243e047b1 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
 
-- 
GitLab