1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/tests/pkg_monocypher/tests/01-run.py
Alexandre Abadie a1736b08ad
tests/pkg_{hacl,monocypher}: set custom timeout value
On samr30-xpro the tests takes respectively 20 and 14 seconds to complete
2019-01-18 11:29:46 +01:00

25 lines
595 B
Python
Executable File

#!/usr/bin/env python3
# Copyright (C) 2016 Kaspar Schleiser <kaspar@schleiser.de>
# Copyright (C) 2016 Takuo Yonezawa <Yonezawa-T2@mail.dnp.co.jp>
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
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\)", timeout=TIMEOUT)
if __name__ == "__main__":
sys.exit(run(testfunc))