[commit: testsuite] master: Rearrange the summary output (ceabf35)
Ian Lynagh
igloo at earth.li
Sun Feb 10 18:59:19 CET 2013
Repository : ssh://darcs.haskell.org//srv/darcs/testsuite
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/ceabf35eac4e6cb863e8456a3cf95db8e1fa0974
>---------------------------------------------------------------
commit ceabf35eac4e6cb863e8456a3cf95db8e1fa0974
Author: Ian Lynagh <ian at well-typed.com>
Date: Sun Feb 10 16:48:24 2013 +0000
Rearrange the summary output
In particular, the 3 values you most need to care about (framework
failures, unexpected passes, unexpected failures) are now together
in a block.
>---------------------------------------------------------------
driver/testlib.py | 34 ++++++++++++++++++----------------
1 files changed, 18 insertions(+), 16 deletions(-)
diff --git a/driver/testlib.py b/driver/testlib.py
index 77b05ed..e77c7d9 100644
--- a/driver/testlib.py
+++ b/driver/testlib.py
@@ -2217,25 +2217,27 @@ def summary(t, file):
file.write('\n')
printUnexpectedTests(file, [t.unexpected_passes, t.unexpected_failures])
- file.write('OVERALL SUMMARY for test run started at ' \
- + t.start_time + '\n'\
- + string.rjust(`t.total_tests`, 8) \
- + ' total tests, which gave rise to\n' \
- + string.rjust(`t.total_test_cases`, 8) \
- + ' test cases, of which\n' \
- + string.rjust(`t.n_framework_failures`, 8) \
- + ' caused framework failures\n' \
+ file.write('OVERALL SUMMARY for test run started at '
+ + t.start_time + '\n'
+ + string.rjust(`t.total_tests`, 8)
+ + ' total tests, which gave rise to\n'
+ + string.rjust(`t.total_test_cases`, 8)
+ + ' test cases, of which\n'
+ string.rjust(`t.n_tests_skipped`, 8)
- + ' were skipped\n\n' \
- + string.rjust(`t.n_expected_passes`, 8)
- + ' expected passes\n' \
+ + ' were skipped\n'
+ + '\n'
+ string.rjust(`t.n_missing_libs`, 8)
- + ' had missing libraries\n' \
- + string.rjust(`t.n_expected_failures`, 8) \
- + ' expected failures\n' \
- + string.rjust(`t.n_unexpected_passes`, 8) \
+ + ' had missing libraries\n'
+ + string.rjust(`t.n_expected_passes`, 8)
+ + ' expected passes\n'
+ + string.rjust(`t.n_expected_failures`, 8)
+ + ' expected failures\n'
+ + '\n'
+ + string.rjust(`t.n_framework_failures`, 8)
+ + ' caused framework failures\n'
+ + string.rjust(`t.n_unexpected_passes`, 8)
+ ' unexpected passes\n'
- + string.rjust(`t.n_unexpected_failures`, 8) \
+ + string.rjust(`t.n_unexpected_failures`, 8)
+ ' unexpected failures\n'
+ '\n')
More information about the ghc-commits
mailing list