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")
|
self.print_result("ioerr_serial")
|
||||||
return
|
return
|
||||||
print "Read %d bytes"% len(c)
|
print "Read %d bytes"% len(c)
|
||||||
|
print c
|
||||||
stdout.flush()
|
stdout.flush()
|
||||||
result = True
|
result = True
|
||||||
# Because we can have targetID here let's try to decode
|
# 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"
|
result_msg = "OK" if (time_str == correct_time_str) else "FAIL"
|
||||||
print "Got RTC time: " + c[:-1] + " ... " + result_msg
|
print "Got RTC time: " + c[:-1] + " ... " + result_msg
|
||||||
stdout.flush()
|
stdout.flush()
|
||||||
|
else:
|
||||||
|
test_result = False
|
||||||
|
break
|
||||||
|
|
||||||
if test_result: # All numbers are the same
|
if test_result: # All numbers are the same
|
||||||
self.print_result('success')
|
self.print_result('success')
|
||||||
|
|
Loading…
Reference in New Issue