[riot-notifications] [RIOT-OS/RIOT] tests/thread_float: improve and add script (#16901)

Alexandre Abadie notifications at github.com
Wed Sep 29 17:27:27 CEST 2021


@aabadie commented on this pull request.



> +from testrunner import run
+
+
+def assertAlmostEqual(first, second, delta=0.05):
+    assert first + delta > second
+    assert first - delta < second
+
+
+def testfunc(child):
+    child.expect("THREADS CREATED")
+    child.expect("")
+    child.expect("THREAD t1 start")
+    child.expect("THREAD t2 start")
+    child.expect("THREAD t3 start")
+
+    child.expect(r"t(\d): (\d{3}\.\d+)")

```suggestion
    child.expect(r"t(\d): (\d{3}\.\d+)\r\n")
```
Here and 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/16901#pullrequestreview-766857687
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210929/bf88d07e/attachment.htm>


More information about the notifications mailing list