[commit: testsuite] master: Add a TEST="..." line to testsuite output (e131364)
Ian Lynagh
igloo at earth.li
Thu Feb 7 18:41:46 CET 2013
Repository : ssh://darcs.haskell.org//srv/darcs/testsuite
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/e13136461cc99fb02bfbc088a76c6a4acb7f3ba4
>---------------------------------------------------------------
commit e13136461cc99fb02bfbc088a76c6a4acb7f3ba4
Author: Ian Lynagh <ian at well-typed.com>
Date: Thu Feb 7 16:59:28 2013 +0000
Add a TEST="..." line to testsuite output
This gives hte list of tests with unexpected results, so that you can
easily run them again.
>---------------------------------------------------------------
driver/testlib.py | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/driver/testlib.py b/driver/testlib.py
index 846c401..141b432 100644
--- a/driver/testlib.py
+++ b/driver/testlib.py
@@ -2211,6 +2211,7 @@ def findTFiles_(path):
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) \
@@ -2247,6 +2248,18 @@ def summary(t, file):
if stopping():
file.write('WARNING: Testsuite run was terminated early\n')
+def printUnexpectedTests(file, testInfoss):
+ unexpected = []
+ for testInfos in testInfoss:
+ directories = testInfos.keys()
+ for directory in directories:
+ tests = testInfos[directory].keys()
+ unexpected += tests
+ if unexpected != []:
+ file.write('Unexpected results from:\n')
+ file.write('TEST="' + ' '.join(unexpected) + '"\n')
+ file.write('\n')
+
def printPassingTestInfosSummary(file, testInfos):
directories = testInfos.keys()
directories.sort()
More information about the ghc-commits
mailing list