1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/msg_try_receive: migrate to testrunner

This commit is contained in:
Alexandre Abadie 2017-11-09 21:58:48 +01:00
parent 68976f8f17
commit 2c7eba58e6
2 changed files with 18 additions and 0 deletions

View File

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

View File

@ -0,0 +1,15 @@
#!/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('msg available: 1 \(should be 1\!\)')
if __name__ == "__main__":
sys.exit(testrunner.run(testfunc))