From 79f3386cc90ba5a341485c0faae3c4ef1d3e011e Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Thu, 7 Feb 2013 16:59:28 +0000 Subject: Add a TEST="..." line to testsuite output This gives hte list of tests with unexpected results, so that you can easily run them again. --- testsuite/driver/testlib.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'testsuite') 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() -- cgit v1.2.1