[riot-notifications] [RIOT-OS/RIOT] tests/periph_rtt_min: adapt for slower RTTs (#16329)

Martine Lenders notifications at github.com
Wed Apr 14 20:07:18 CEST 2021


@miri64 commented on this pull request.



> @@ -15,10 +15,11 @@ def testfunc(child):
     child.expect(r"Evaluate RTT_MIN_OFFSET over (\d+) samples")
 
     exp_samples = int(child.match.group(1))
-    child.expect(
-        r'RTT_MIN_OFFSET for [a-zA-Z\-\_0-9]+ over {samples} samples: \d+'
-        .format(samples=exp_samples)
-    )
+    test_end = r'RTT_MIN_OFFSET for [a-zA-Z\-\_0-9]+ over {samples} ' \
+               r'samples: \d+'.format(samples=exp_samples)
+    test_ongoing = r'Sample \d+'
+    while child.expect([test_end, test_ongoing]):
+        pass
 
 
 if __name__ == "__main__":

If we want to reduce the spam, we can also set `echo=False` in the line below.

-- 
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/16329#pullrequestreview-635932016
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210414/6deaf958/attachment-0001.htm>


More information about the notifications mailing list