Apply a cosmetic fix for tests' output.
Always leave at least two spaces between the test's name and the result of the test (even if the test's name's lenght exeeds 40 chracters). Signed-off-by: Hemmo Nieminen <hemmo.nieminen@iki.fi>
This commit is contained in:
parent
b00064b594
commit
84581a69ed
|
@ -111,9 +111,9 @@ def run_single_test(wrap, test):
|
|||
def print_stats(numlen, tests, name, result, i, logfile, jsonlogfile):
|
||||
startpad = ' '*(numlen - len('%d' % (i+1)))
|
||||
num = '%s%d/%d' % (startpad, i+1, len(tests))
|
||||
padding1 = ' '*(40-len(name))
|
||||
padding1 = ' '*(38-len(name))
|
||||
padding2 = ' '*(5-len(result.res))
|
||||
result_str = '%s %s%s%s%s(%5.2f s)' % \
|
||||
result_str = '%s %s %s%s%s(%5.2f s)' % \
|
||||
(num, name, padding1, result.res, padding2, result.duration)
|
||||
print(result_str)
|
||||
write_log(logfile, name, result_str, result)
|
||||
|
|
Loading…
Reference in New Issue