From a1736b08ad2a5a9b6a49e4e0509fed4dd849cc39 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Thu, 17 Jan 2019 13:54:05 +0100 Subject: [PATCH] tests/pkg_{hacl,monocypher}: set custom timeout value On samr30-xpro the tests takes respectively 20 and 14 seconds to complete --- tests/pkg_hacl/tests/01-run.py | 7 ++++++- tests/pkg_monocypher/tests/01-run.py | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/pkg_hacl/tests/01-run.py b/tests/pkg_hacl/tests/01-run.py index 4e70aa35dd..89d97a2776 100755 --- a/tests/pkg_hacl/tests/01-run.py +++ b/tests/pkg_hacl/tests/01-run.py @@ -10,8 +10,13 @@ import sys from testrunner import run +# increase the default timeout to 30s, on samr30-xpro this test takes 20s to +# complete. +TIMEOUT = 30 + + def testfunc(child): - child.expect('OK \(\d+ tests\)') + child.expect('OK \(\d+ tests\)', timeout=TIMEOUT) if __name__ == "__main__": diff --git a/tests/pkg_monocypher/tests/01-run.py b/tests/pkg_monocypher/tests/01-run.py index ecc2753690..d50e5ce468 100755 --- a/tests/pkg_monocypher/tests/01-run.py +++ b/tests/pkg_monocypher/tests/01-run.py @@ -11,8 +11,13 @@ import sys from testrunner import run +# increase the default timeout to 20s, on samr30-xpro this test takes 14s to +# complete. +TIMEOUT = 20 + + def testfunc(child): - child.expect(r"OK \(2 tests\)") + child.expect(r"OK \(2 tests\)", timeout=TIMEOUT) if __name__ == "__main__":