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>
pull/96/head
Hemmo Nieminen 10 years ago committed by Jussi Pakkanen
parent b00064b594
commit 84581a69ed
  1. 2
      meson_test.py

@ -111,7 +111,7 @@ 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)' % \
(num, name, padding1, result.res, padding2, result.duration)

Loading…
Cancel
Save