2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 12:22:17 +00:00

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]
This commit is contained in:
Jurko Gospodnetić
2012-06-11 01:49:52 +00:00
parent 028a05d91a
commit 05887be75a

View File

@@ -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: