[riot-notifications] [RIOT-OS/RIOT] tests/xtimer_mutex_lock_timeout: add simple case test (#11679)

Julian Holzwarth notifications at github.com
Wed Jun 12 17:56:09 CEST 2019


JulianHolzwarth commented on this pull request.



> +# directory for more details.
+
+# @author      Julian Holzwarth <julian.holzwarth at fu-berlin.de>
+
+import sys
+import pexpect
+from testrunner import run
+
+
+def testfunc(child):
+    # Try to wait for the shell
+    for _ in range(0, 10):
+        child.sendline("help")
+        if child.expect_exact(["> ", pexpect.TIMEOUT], timeout=1) == 0:
+            break
+    child.sendline("mutex_timeout_n_spin_unlocked")

done

-- 
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/11679#discussion_r292992695
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190612/390720f3/attachment.html>


More information about the notifications mailing list