From 0ea00d932ef16aad3cb2fdbacedd30181c786778 Mon Sep 17 00:00:00 2001
From: Alexandre Abadie <alexandre.abadie@inria.fr>
Date: Tue, 11 Dec 2018 17:47:01 +0100
Subject: [PATCH] tests/pkg_libcose: increase timeout of autotest

On a microbit (nrf51) the autotest takes around 4 minutes to complete.
---
 tests/pkg_libcose/tests/01-run.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tests/pkg_libcose/tests/01-run.py b/tests/pkg_libcose/tests/01-run.py
index d4011d0fd7..d130286d0b 100755
--- a/tests/pkg_libcose/tests/01-run.py
+++ b/tests/pkg_libcose/tests/01-run.py
@@ -11,10 +11,15 @@ import sys
 from testrunner import run
 
 
+# on real hardware, this test application can take several minutes to
+# complete (~4min on microbit)
+HW_TIMEOUT = 300
+
+
 def testfunc(child):
     board = os.environ['BOARD']
     # Increase timeout on "real" hardware
-    timeout = 120 if board is not 'native' else -1
+    timeout = HW_TIMEOUT if board is not 'native' else -1
     child.expect('OK \(\d+ tests\)', timeout=timeout)
 
 
-- 
GitLab