]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
test: let use gdbserver for all sandbox targets
authorIgor Opaniuk <igor.opaniuk@linaro.org>
Tue, 12 Feb 2019 14:18:14 +0000 (16:18 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 19 Feb 2019 13:55:43 +0000 (08:55 -0500)
Enable usage of gdbserver for all sandbox targets (sandbox,
sandbox_flattree etc.).

Signed-off-by: Igor Opaniuk <igor.opaniuk@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/py/conftest.py

index 5c658b8c4840fce1e8c0e143a29c22f7f6f2dbdf..e40cbf0ba12ab329afdc08413d71719cee992b8b 100644 (file)
@@ -117,8 +117,8 @@ def pytest_configure(config):
     mkdir_p(persistent_data_dir)
 
     gdbserver = config.getoption('gdbserver')
-    if gdbserver and board_type != 'sandbox':
-        raise Exception('--gdbserver only supported with sandbox')
+    if gdbserver and not board_type.startswith('sandbox'):
+        raise Exception('--gdbserver only supported with sandbox targets')
 
     import multiplexed_log
     log = multiplexed_log.Logfile(result_dir + '/test-log.html')