dg-extract-results.py (output_variation): Always sort if do_sum.

2014-10-02  Segher Boessenkool  <segher@kernel.crashing.org>

	* dg-extract-results.py (output_variation): Always sort if do_sum.

From-SVN: r215817
This commit is contained in:
Segher Boessenkool 2014-10-02 20:24:07 +02:00 committed by Segher Boessenkool
parent 830976a1de
commit c19adb17ef
2 changed files with 5 additions and 9 deletions

View File

@ -1,3 +1,7 @@
2014-10-02 Segher Boessenkool <segher@kernel.crashing.org>
* dg-extract-results.py (output_variation): Always sort if do_sum.
2014-09-22 Tom de Vries <tom@codesourcery.com>
* mklog: Add --inline option.

View File

@ -495,15 +495,7 @@ class Prog:
key = attrgetter ('name')):
sys.stdout.write ('Running ' + harness.name + ' ...\n')
if self.do_sum:
# Keep the original test result order if there was only
# one segment for this harness. This is needed for
# unsorted.exp, which has unusual test names. Otherwise
# sort the tests by test filename. If there are several
# subtests for the same test filename (such as 'compilation',
# 'test for excess errors', etc.) then keep the subtests
# in the original order.
if len (harness.segments) > 1:
harness.results.sort()
harness.results.sort()
for (key, line) in harness.results:
sys.stdout.write (line)
else: