aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHemmo Nieminen <hemmo.nieminen@iki.fi>2015-03-30 21:46:39 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-03-30 22:04:01 +0300
commit84581a69edfc228ee7227c3585b9baf16738b072 (patch)
tree9968f45c6e78383313879fa53fe3b7d70f2b88dd
parentb00064b5940be786c2983fc883e0594d4da5b687 (diff)
downloadmeson-84581a69edfc228ee7227c3585b9baf16738b072.zip
meson-84581a69edfc228ee7227c3585b9baf16738b072.tar.gz
meson-84581a69edfc228ee7227c3585b9baf16738b072.tar.bz2
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>
-rwxr-xr-xmeson_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meson_test.py b/meson_test.py
index 65f9899..f6f8fbd 100755
--- a/meson_test.py
+++ b/meson_test.py
@@ -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)