From 945604e16e1d1e7e13a910d088c78188fee765a4 Mon Sep 17 00:00:00 2001 From: Przemek Wirkus Date: Wed, 15 Oct 2014 17:19:36 +0100 Subject: [PATCH] =?UTF-8?q?RTC=20test=20readline=20timeout=20increased=20t?= =?UTF-8?q?o=2010=20seconds.=20Reason:=20RTC=20test=20is=20fail=20on=20Nuc?= =?UTF-8?q?leo=20boards=20which=20don=E2=80=99t=20have=20the=20LSE=20xtal.?= =?UTF-8?q?=20This=20is=20because=20there=20is=20a=20timeout=20in=20the=20?= =?UTF-8?q?code=20of=20several=20seconds=20to=20wait=20until=20the=20LSE?= =?UTF-8?q?=20clock=20has=20startup.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- workspace_tools/host_tests/rtc_auto.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workspace_tools/host_tests/rtc_auto.py b/workspace_tools/host_tests/rtc_auto.py index 87a2154a28..a96eaa8d39 100644 --- a/workspace_tools/host_tests/rtc_auto.py +++ b/workspace_tools/host_tests/rtc_auto.py @@ -29,7 +29,8 @@ class RTCTest(DefaultTest): start = time() sec_prev = 0 for i in range(0, 5): - c = self.mbed.serial_readline() + # Timeout changed from default: we need to wait longer for some boards to start-up + c = self.mbed.serial_readline(timeout=10) if c is None: self.print_result("ioerr_serial") return