tps: show final result of tests on screen

parent 33591dd6
......@@ -220,11 +220,14 @@ class Suite(object):
log.write('------------------------\n')
log.write('Test suite finished.\n')
if not failures:
log.write('All tests OK\n')
msg = 'All tests OK\n'
else:
log.write('FAILED: ')
msg = [ 'FAILED:' ]
for fail in failures:
log.write(fail[0] + ' ')
msg.append(fail[0])
msg = ' '.join(msg)
print msg
log.write(msg)
log.close()
def get_serial():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment