tps: show final result of tests on screen

parent 84c1fb13
...@@ -220,11 +220,14 @@ class Suite(object): ...@@ -220,11 +220,14 @@ class Suite(object):
log.write('------------------------\n') log.write('------------------------\n')
log.write('Test suite finished.\n') log.write('Test suite finished.\n')
if not failures: if not failures:
log.write('All tests OK\n') msg = 'All tests OK\n'
else: else:
log.write('FAILED: ') msg = [ 'FAILED:' ]
for fail in failures: for fail in failures:
log.write(fail[0] + ' ') msg.append(fail[0])
msg = ' '.join(msg)
print msg
log.write(msg)
log.close() log.close()
def get_serial(): 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