mirror of https://github.com/ARMmbed/mbed-os.git
For timer / timeout related tests deviation changed to +/- 10% - some boards can run on not precise quartz / RC oscilators
parent
99d14db8c1
commit
e066b84f1c
|
@ -40,7 +40,8 @@ class WaitusTest(DefaultTest):
|
||||||
self.print_result("ioerr_serial")
|
self.print_result("ioerr_serial")
|
||||||
return
|
return
|
||||||
print "Test started"
|
print "Test started"
|
||||||
start_serial_pool = start = time();
|
start_serial_pool = time()
|
||||||
|
start = time()
|
||||||
for i in range(0, 10):
|
for i in range(0, 10):
|
||||||
c = self.mbed.serial_read(1)
|
c = self.mbed.serial_read(1)
|
||||||
if c is None:
|
if c is None:
|
||||||
|
@ -56,7 +57,7 @@ class WaitusTest(DefaultTest):
|
||||||
else:
|
else:
|
||||||
print ". skipped"
|
print ". skipped"
|
||||||
stdout.flush()
|
stdout.flush()
|
||||||
start = time();
|
start = time()
|
||||||
measurement_time = time() - start_serial_pool
|
measurement_time = time() - start_serial_pool
|
||||||
print "Completed in %.2f sec" % (measurement_time)
|
print "Completed in %.2f sec" % (measurement_time)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue