# HG changeset patch # User Pierre-Yves David # Date 1431066024 25200 # Node ID 2dadd81c68fb185d58e90b2d77a405ba49881fc9 # Parent f44db7343be98ba0af97efa21786c37dbd39ba43 run-tests: when building json, use result.failures instead of result.faildata It is unclear to me why 'faildata' was used. Let's use the same kind of attribute as for the other groups. diff -r f44db7343be9 -r 2dadd81c68fb tests/run-tests.py --- a/tests/run-tests.py Fri May 08 19:32:11 2015 -0700 +++ b/tests/run-tests.py Thu May 07 23:20:24 2015 -0700 @@ -1542,12 +1542,12 @@ 'csys': ('%0.3f' % timesd[tc.name][2])} outcome[tc.name] = testresult - for tc, err in sorted(result.faildata.iteritems()): + for tc, error in result.failures: testresult = {'result': 'failure', - 'time': ('%0.3f' % timesd[tc][0]), - 'cuser': ('%0.3f' % timesd[tc][1]), - 'csys': ('%0.3f' % timesd[tc][2])} - outcome[tc] = testresult + 'time': ('%0.3f' % timesd[tc.name][0]), + 'cuser': ('%0.3f' % timesd[tc.name][1]), + 'csys': ('%0.3f' % timesd[tc.name][2])} + outcome[tc.name] = testresult for tc, reason in result.skipped: testresult = {'result': 'skip',