From 05887be75a0bae697fb522d9d69cf54853c0da28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Mon, 11 Jun 2012 01:49:52 +0000 Subject: [PATCH] Made the main Boost Build test runner script better align its test results on screen when not run with XML output. Now the maximum test name length is no longer hardcoded. [SVN r78880] --- test/test_all.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/test_all.py b/test/test_all.py index 496b7889d..79df7f2c9 100644 --- a/test/test_all.py +++ b/test/test_all.py @@ -43,13 +43,17 @@ def run_tests(critical_tests, other_tests): all_tests = critical_tests + other_tests invocation_dir = os.getcwd() + max_test_name_len = 10 + for x in all_tests: + if len(x) > max_test_name_len: + max_test_name_len = len(x) pass_count = 0 failures_count = 0 for test in all_tests: if not xml: - print("%-25s :" % test), + print("%%-%ds :" % max_test_name_len % test), passed = 0 try: