[riot-notifications] [RIOT-OS/RIOT] tests/msg_queue_print: fix test on hw (#16525)

Kaspar Schleiser notifications at github.com
Fri Jun 4 12:08:33 CEST 2021


@kaspar030 commented on this pull request.



>  import sys
 from testrunner import run
 
 
 def testfunc(child):
     child.expect("No message queue")
-    child.expect("Message queue of thread 2")
+    child.expect(r"Message queue of thread \d+")

`\d+` would match the 1 of 12 with pexpect. in this case, we're not expecting double digit thread ids, but then do just `\d` to be explicit, or fix to read `(\d+)\r\n'`

https://github.com/kaspar030/RIOT/blob/5d7477fa5f240e7989acb1158c8342d06b9c8360/tests/README.md#L67-L94

-- 
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/16525#discussion_r645454572
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210604/f2cae5ac/attachment.htm>


More information about the notifications mailing list