Removed small typo from host test

pull/533/head
Przemek Wirkus 2014-09-16 14:39:58 +01:00
parent 344cc2b3c8
commit f92bd88f98
1 changed files with 2 additions and 2 deletions

View File

@ -38,12 +38,12 @@ class RTCTest(DefaultTest):
time_str = m.groups()[1]
correct_time_str = strftime("%Y-%m-%d %H:%M:%S %p", gmtime(float(sec)))
test_result = test_result and (time_str == correct_time_str)
result_msg = "OK" if (time_str == correct_time_str) else "FAIL"
result_msg = "OK" if (time_str == correct_time_str and sec > 0) else "FAIL"
print "Got RTC time: " + c[:-1] + " ... " + result_msg
stdout.flush()
else:
print c
stdout.fluch()
stdout.flush()
test_result = False
break