1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

tests/thread_exit: migrate to testrunner script

This commit is contained in:
Alexandre Abadie 2017-11-04 16:49:37 +01:00
parent 663bd8a71c
commit 95bb6d48d8
2 changed files with 25 additions and 0 deletions

View File

@ -6,3 +6,6 @@ BOARD_INSUFFICIENT_MEMORY := nucleo32-f031
DISABLE_MODULE += auto_init
include $(RIOTBASE)/Makefile.include
test:
tests/01-run.py

View File

@ -0,0 +1,22 @@
#!/usr/bin/env python3
import os
import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child):
child.expect("main: starting")
child.expect("main: exiting")
child.expect("2nd: starting")
child.expect("3rd: starting")
child.expect("3rd: exiting")
child.expect("2nd: exiting")
child.expect("4th: starting")
child.expect("4th: exiting")
if __name__ == "__main__":
sys.exit(testrunner.run(testfunc))