diff mbox series

[U-Boot,1/1] test: let use gdbserver for all sandbox targets

Message ID 1549981094-9519-1-git-send-email-igor.opaniuk@linaro.org
State Accepted
Commit 7374b15522b94d39108da6233b60ffbf30632678
Delegated to: Tom Rini
Headers show
Series [U-Boot,1/1] test: let use gdbserver for all sandbox targets | expand

Commit Message

Igor Opaniuk Feb. 12, 2019, 2:18 p.m. UTC
Enable usage of gdbserver for all sandbox targets (sandbox,
sandbox_flattree etc.).

Signed-off-by: Igor Opaniuk <igor.opaniuk@linaro.org>
---
 test/py/conftest.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Tom Rini Feb. 13, 2019, 12:56 a.m. UTC | #1
On Tue, Feb 12, 2019 at 04:18:14PM +0200, Igor Opaniuk wrote:

> 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>
Simon Glass Feb. 14, 2019, 1:54 a.m. UTC | #2
On Tue, 12 Feb 2019 at 15:18, Igor Opaniuk <igor.opaniuk@linaro.org> wrote:
>
> Enable usage of gdbserver for all sandbox targets (sandbox,
> sandbox_flattree etc.).
>
> Signed-off-by: Igor Opaniuk <igor.opaniuk@linaro.org>
> ---
>  test/py/conftest.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Tom Rini Feb. 20, 2019, 1:58 a.m. UTC | #3
On Tue, Feb 12, 2019 at 04:18:14PM +0200, Igor Opaniuk wrote:

> 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>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/test/py/conftest.py b/test/py/conftest.py
index 5c658b8..e40cbf0 100644
--- a/test/py/conftest.py
+++ b/test/py/conftest.py
@@ -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')