[riot-notifications] [RIOT-OS/RIOT] boards/common/nrf52: add openocd support for 'nordic_softdevice_ble' (#11470)

Ga√ętan Harter notifications at github.com
Mon May 27 16:43:59 CEST 2019


cladmi commented on this pull request.



> @@ -0,0 +1,38 @@
+#!/usr/bin/env python3
+
+# Copyright (C) 2019 Freie Universität Berlin
+#
+# This file is subject to the terms and conditions of the GNU Lesser
+# General Public License v2.1. See the file LICENSE in the top level
+# directory for more details.
+
+import sys
+from testrunner import run
+
+
+
+def _check_shell_is_working(child, tries=5):

``` diff
diff --git a/examples/gnrc_networking/tests/01-run.py b/examples/gnrc_networking/tests/01-run.py
index bd778020d..baf937c7e 100755
--- a/examples/gnrc_networking/tests/01-run.py
+++ b/examples/gnrc_networking/tests/01-run.py
@@ -15,18 +15,12 @@ def _check_shell_is_working(child, tries=5):
 
     It ensures the application did not crash.
     """
-    for i in range(0, tries):
-        child.sendline('help')
-        try:
-            child.expect_exact('Command              Description', timeout=1)
-            child.expect_exact('---------------------------------------',
-                               timeout=1)
-            child.expect_exact('> ', timeout=1)
-            break
-        except Exception:
-            pass
-    else:
-        child.expect('>')
+    child.expect_exact('All up, running the shell now')
+    child.sendline('help')
+    child.expect_exact('Command              Description', timeout=1)
+    child.expect_exact('---------------------------------------',
+                        timeout=1)
+    child.expect_exact('> ', timeout=1)
 
 
 def testfunc(child):
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11470#discussion_r287816346
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190527/920caf18/attachment.html>


More information about the notifications mailing list