diff --git a/llvm/utils/lit/lit/reports.py b/llvm/utils/lit/lit/reports.py index c23b4c7140900..9631d5fe3b358 100755 --- a/llvm/utils/lit/lit/reports.py +++ b/llvm/utils/lit/lit/reports.py @@ -74,14 +74,13 @@ def __init__(self, output_file): self.skipped_codes = {lit.Test.EXCLUDED, lit.Test.SKIPPED, lit.Test.UNSUPPORTED} - # TODO(yln): elapsed unused, put it somewhere? def write_results(self, tests, elapsed): tests.sort(key=by_suite_and_test_path) tests_by_suite = itertools.groupby(tests, lambda t: t.suite) with open(self.output_file, 'w') as file: file.write('\n') - file.write('\n') + file.write('\n'.format(time=elapsed)) for suite, test_iter in tests_by_suite: self._write_testsuite(file, suite, list(test_iter)) file.write('\n') diff --git a/llvm/utils/lit/tests/shtest-format.py b/llvm/utils/lit/tests/shtest-format.py index 86742e39ac4be..aa74a2caa8a2a 100644 --- a/llvm/utils/lit/tests/shtest-format.py +++ b/llvm/utils/lit/tests/shtest-format.py @@ -86,7 +86,7 @@ # XUNIT: -# XUNIT-NEXT: +# XUNIT-NEXT: # XUNIT-NEXT: # XUNIT: diff --git a/llvm/utils/lit/tests/xunit-output.py b/llvm/utils/lit/tests/xunit-output.py index 32a35f82a9433..81d8525f33b46 100644 --- a/llvm/utils/lit/tests/xunit-output.py +++ b/llvm/utils/lit/tests/xunit-output.py @@ -8,7 +8,7 @@ # RUN: FileCheck < %t.xunit.xml %s # CHECK: -# CHECK-NEXT: +# CHECK-NEXT: # CHECK-NEXT: # CHECK-NEXT: # CHECK-NEXT: ]]]]> &"]]>