tests/pkg_micro-ecc*: increase expect timeout

Otherwise the test takes too long on nrf51 based boards and fails:
- 80s on a microbit for tests/pkg_micro-ecc
- 120s on a microbit for tests/pkg_micro-ecc-with-hwrng
This commit is contained in:
Alexandre Abadie 2018-12-12 17:19:37 +01:00
parent 6886ca54c2
commit 5c4698bfd8
2 changed files with 12 additions and 2 deletions

View File

@ -4,6 +4,11 @@ import sys
from testrunner import run
# Use a custom global timeout for slow hardware. On microbit (nrf51), the
# test completes in 120s.
TIMEOUT = 200
def testfunc(child):
child.expect_exact('micro-ecc compiled!')
child.expect_exact('Testing 16 random private key pairs and signature '
@ -13,4 +18,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.exit(run(testfunc, timeout=60))
sys.exit(run(testfunc, timeout=TIMEOUT))

View File

@ -4,6 +4,11 @@ import sys
from testrunner import run
# Use a custom global timeout for slow hardware. On microbit (nrf51), the
# test completes in 80s.
TIMEOUT = 100
def testfunc(child):
child.expect_exact('micro-ecc compiled!')
child.expect_exact('Testing 16 random private key pairs and signature '
@ -13,4 +18,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.exit(run(testfunc, timeout=60))
sys.exit(run(testfunc, timeout=TIMEOUT))