Align test output text better.

pull/223/head
Jussi Pakkanen 9 years ago
parent 270b24c8e0
commit aada473713
  1. 2
      meson_test.py

@ -126,7 +126,7 @@ def print_stats(numlen, tests, name, result, i, logfile, jsonlogfile):
startpad = ' '*(numlen - len('%d' % (i+1))) startpad = ' '*(numlen - len('%d' % (i+1)))
num = '%s%d/%d' % (startpad, i+1, len(tests)) num = '%s%d/%d' % (startpad, i+1, len(tests))
padding1 = ' '*(38-len(name)) padding1 = ' '*(38-len(name))
padding2 = ' '*(5-len(result.res)) padding2 = ' '*(8-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) (num, name, padding1, result.res, padding2, result.duration)
print(result_str) print(result_str)

Loading…
Cancel
Save