Skip to content

Commit

Permalink
Apply a cosmetic fix for tests' output.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
trhd authored and jpakkane committed Mar 30, 2015
1 parent b00064b commit 84581a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meson_test.py
Expand Up @@ -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)
Expand Down

0 comments on commit 84581a6

Please sign in to comment.