Skip to content
Snippets Groups Projects
Commit e87314fa authored by Alexandre Abadie's avatar Alexandre Abadie
Browse files

tests/pthread_condition_variable: migrate to testrunner script

parent 936928f8
No related branches found
No related tags found
No related merge requests found
......@@ -13,3 +13,6 @@ USEMODULE += xtimer
CFLAGS += -DNATIVE_AUTO_EXIT
include $(RIOTBASE)/Makefile.include
test:
tests/01-run.py
#!/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')
child.expect('condition fulfilled.')
child.expect('SUCCESS')
if __name__ == "__main__":
# This test can take some time to complete when testing on hardware (e.g
# on samr21-xpro) and the default timeout (10s) is not enough.
sys.exit(testrunner.run(testfunc, timeout=60))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment