Improvements to RTC's host_test test case

pull/477/head
Przemek Wirkus 2014-09-04 15:30:08 +01:00
parent c12b5de37b
commit beed8358f9
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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')