Skip to content

Commit beed835

Browse files
committed
Improvements to RTC's host_test test case
1 parent c12b5de commit beed835

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

workspace_tools/host_tests/hello_auto.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def run(self):
2828
self.print_result("ioerr_serial")
2929
return
3030
print "Read %d bytes"% len(c)
31+
print c
3132
stdout.flush()
3233
result = True
3334
# Because we can have targetID here let's try to decode

workspace_tools/host_tests/rtc_auto.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ def run(self):
4444
result_msg = "OK" if (time_str == correct_time_str) else "FAIL"
4545
print "Got RTC time: " + c[:-1] + " ... " + result_msg
4646
stdout.flush()
47+
else:
48+
test_result = False
49+
break
4750

4851
if test_result: # All numbers are the same
4952
self.print_result('success')

0 commit comments

Comments
 (0)