mirror of https://github.com/ARMmbed/mbed-os.git
Host test plugins: bug-fix: serial_timeout was used as function name and class member. Caused runtime script problem
Host test plugins: Increased test suite timeout on each test execution twice - for now, so tests do not timeout. TODO: exclude coopy and reset procedures from testcase timeout measurementpull/719/head
parent
3d4e03d0da
commit
93a87748a3
|
@ -25,7 +25,6 @@ except ImportError, e:
|
|||
import os
|
||||
from sys import stdout
|
||||
from time import sleep, time
|
||||
from os.path import exists
|
||||
from optparse import OptionParser
|
||||
|
||||
import host_tests_plugins
|
||||
|
@ -136,7 +135,7 @@ class Mbed:
|
|||
self.flush()
|
||||
return result
|
||||
|
||||
def serial_timeout(self, timeout):
|
||||
def set_serial_timeout(self, timeout):
|
||||
""" Wraps self.mbed.serial object timeout property
|
||||
"""
|
||||
result = None
|
||||
|
|
|
@ -26,7 +26,7 @@ class WaitusTest(DefaultTest):
|
|||
def test(self):
|
||||
test_result = True
|
||||
# First character to start test (to know after reset when test starts)
|
||||
if self.mbed.serial_timeout(None) is None:
|
||||
if self.mbed.set_serial_timeout(None) is None:
|
||||
return self.RESULT_IO_SERIAL
|
||||
c = self.mbed.serial_read(1)
|
||||
if c is None:
|
||||
|
|
|
@ -820,7 +820,7 @@ class SingleTestRunner(object):
|
|||
start_time = time()
|
||||
line = ''
|
||||
output = []
|
||||
while (time() - start_time) < duration:
|
||||
while (time() - start_time) < (2 * duration):
|
||||
c = get_char_from_queue(obs)
|
||||
|
||||
if c:
|
||||
|
|
Loading…
Reference in New Issue