tests/thread_flags_xtimer: migrate to testrunner script

This commit is contained in:
Alexandre Abadie 2017-11-04 16:52:24 +01:00
parent 7d4dc0456f
commit 17535f8fb1
2 changed files with 21 additions and 0 deletions

View File

@ -5,3 +5,6 @@ USEMODULE += core_thread_flags
USEMODULE += xtimer
include $(RIOTBASE)/Makefile.include
test:
tests/01-run.py

View File

@ -0,0 +1,18 @@
#!/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("START")
for i in range(5):
child.expect_exact("+++ timeout {} +++".format(i + 1))
child.expect("SUCCESS")
if __name__ == "__main__":
sys.exit(testrunner.run(testfunc))