Commit b8218a9146814ad1dba0c21facddce9adca680ef

Authored by Heiko Schocher
Committed by Tom Rini
1 parent 1ea4fac5a3

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

test/py/u_boot_utils.py
... ... @@ -7,6 +7,7 @@
7 7 import hashlib
8 8 import os
9 9 import os.path
  10 +import pytest
10 11 import sys
11 12 import time
12 13