[riot-notifications] [RIOT-OS/RIOT] tests: enable ps_schedstatistics and struct_tm_utility on-hardware CI tests (#8879)

Francisco Acosta notifications at github.com
Thu Apr 5 15:25:16 CEST 2018

Ok I just tried something. Usually shell based tests will react to 'help' command, so I suggest to change the empty newline with such a command. By doing that in a for loop (just in case) at least 3 times works in my local setup.

@kaspar030 would you agree on that? I can push the modification if you want, for instance:

diff --git a/tests/rng/tests/01-run.py b/tests/rng/tests/01-run.py
index 3d4e86e5b..758a14df0 100755
--- a/tests/rng/tests/01-run.py
+++ b/tests/rng/tests/01-run.py
@@ -9,9 +9,15 @@
 import sys
 import os
 import re
+import pexpect
 def testfunc(child):
+    for x in range(0, 2):
+        child.sendline('help')
+        index = child.expect(['>', pexpect.TIMEOUT])
+        if index == 0:
+            break
     # RNG source
     child.sendline("source 0")
     child.sendline("seed 1337")

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20180405/17845294/attachment.html>

More information about the notifications mailing list