mirror of https://github.com/ARMmbed/mbed-os.git
Improvements to RTC's host_test test case
parent
c12b5de37b
commit
beed8358f9
|
@ -28,6 +28,7 @@ class HelloTest(DefaultTest):
|
|||
self.print_result("ioerr_serial")
|
||||
return
|
||||
print "Read %d bytes"% len(c)
|
||||
print c
|
||||
stdout.flush()
|
||||
result = True
|
||||
# Because we can have targetID here let's try to decode
|
||||
|
|
|
@ -44,6 +44,9 @@ class RTCTest(DefaultTest):
|
|||
result_msg = "OK" if (time_str == correct_time_str) else "FAIL"
|
||||
print "Got RTC time: " + c[:-1] + " ... " + result_msg
|
||||
stdout.flush()
|
||||
else:
|
||||
test_result = False
|
||||
break
|
||||
|
||||
if test_result: # All numbers are the same
|
||||
self.print_result('success')
|
||||
|
|
Loading…
Reference in New Issue