diff options
author | Ian Lynagh <ian@well-typed.com> | 2013-02-07 16:59:28 +0000 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2013-02-07 16:59:28 +0000 |
commit | 79f3386cc90ba5a341485c0faae3c4ef1d3e011e (patch) | |
tree | dbf4fb5d2e4a2f16498fcc0441cfa7564243ad64 /testsuite/driver | |
parent | 164f705faecd02a78a93970699a99bc00d94e8b2 (diff) | |
download | haskell-79f3386cc90ba5a341485c0faae3c4ef1d3e011e.tar.gz |
Add a TEST="..." line to testsuite output
This gives hte list of tests with unexpected results, so that you can
easily run them again.
Diffstat (limited to 'testsuite/driver')
-rw-r--r-- | testsuite/driver/testlib.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py index 846c401ea0..141b4320d8 100644 --- a/testsuite/driver/testlib.py +++ b/testsuite/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() |