From 5599b067abd6a1d61ab64aa286f484956aa52804 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Wed, 15 Jul 2020 12:43:02 +0200 Subject: [PATCH] examples/micropython: fix checked PID With https://github.com/RIOT-OS/RIOT/pull/14224 the idle thread became optional, so the main thread can have either 1 or 2 as PID, depending if the idle thread is included or not. As this might also change in the future, it is probably the best to just expect any number. --- examples/micropython/tests/01-run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/micropython/tests/01-run.py b/examples/micropython/tests/01-run.py index 067029d74a7b..eecc8914aed8 100755 --- a/examples/micropython/tests/01-run.py +++ b/examples/micropython/tests/01-run.py @@ -22,7 +22,7 @@ def get_time(): # test riot.thread_getpid() child.sendline('import riot') child.sendline('print(riot.thread_getpid())') - child.expect_exact('2') + child.expect(r'\d+') child.expect_exact('>>>') #