1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00

Merge pull request #10603 from aabadie/pr/tests/pthread_timeout

tests/pthread_condition_variable: increase timeout
This commit is contained in:
Gaëtan Harter 2018-12-17 17:57:15 +01:00 committed by GitHub
commit 47830f44c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,12 @@ import sys
from testrunner import run
# 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.
# For example, it takes about 2 minutes to complete on a microbit.
TIMEOUT = 150
def testfunc(child):
child.expect('START')
child.expect('condition fulfilled.')
@ -11,6 +17,4 @@ def testfunc(child):
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(run(testfunc, timeout=60))
sys.exit(run(testfunc, timeout=TIMEOUT))