test/py: Handle testing with the sandbox_spl board
authorSimon Glass <sjg@chromium.org>
Mon, 4 Jul 2016 17:58:37 +0000 (11:58 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 15 Jul 2016 02:40:24 +0000 (20:40 -0600)
This board can sometimes be used for tests. Handle it the same way as
sandbox.

Note: I plan to drop the sandbox_spl board at some point and merge its
features into sandbox. So this commit may not be necessary.

Signed-off-by: Simon Glass <sjg@chromium.org>
test/py/conftest.py

index 449f98bee39cb1ecc2d7758af18e72e98d7283a0..050f6e409db99b247e1682a0d7a11214ef720578 100644 (file)
@@ -192,7 +192,7 @@ def pytest_configure(config):
     for v in env_vars:
         os.environ['U_BOOT_' + v.upper()] = getattr(ubconfig, v)
 
-    if board_type == 'sandbox':
+    if board_type.startswith('sandbox'):
         import u_boot_console_sandbox
         console = u_boot_console_sandbox.ConsoleSandbox(log, ubconfig)
     else: