summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2014-05-25 09:35:15 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2014-05-25 09:35:15 +0000
commitb0a0225419d7fd9ee477bbdf8a2bac50169c14b0 (patch)
tree88308a51da08e2e2adccbfcaeecf7f37dfa62b1d /contrib
parentea160a81d5a23c09adcc87c119e6c30da319b5d8 (diff)
downloadgcc-b0a0225419d7fd9ee477bbdf8a2bac50169c14b0.tar.gz
contrib/
* dg-extract-results.py (Named): Remove __cmp__ method. (output_variation): Use a key to sort variation.harnesses. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210913 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog5
-rw-r--r--contrib/dg-extract-results.py7
2 files changed, 8 insertions, 4 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index b2c6cabfba3..90a154e69b2 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,8 @@
+2014-05-25 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * dg-extract-results.py (Named): Remove __cmp__ method.
+ (output_variation): Use a key to sort variation.harnesses.
+
2014-05-24 Uros Bizjak <ubizjak@gmail.com>
* texi2pod.pl: Force .pod file to not be a numbered list.
diff --git a/contrib/dg-extract-results.py b/contrib/dg-extract-results.py
index 5b2652461e0..a5dfc5d8e92 100644
--- a/contrib/dg-extract-results.py
+++ b/contrib/dg-extract-results.py
@@ -11,6 +11,7 @@ import sys
import getopt
import re
from datetime import datetime
+from operator import attrgetter
# True if unrecognised lines should cause a fatal error. Might want to turn
# this on by default later.
@@ -24,9 +25,6 @@ class Named:
def __init__ (self, name):
self.name = name
- def __cmp__ (self, other):
- return cmp (self.name, other.name)
-
class ToolRun (Named):
def __init__ (self, name):
Named.__init__ (self, name)
@@ -480,7 +478,8 @@ class Prog:
# with a summary at the end.
def output_variation (self, tool, variation):
self.output_segment (variation.header)
- for harness in sorted (variation.harnesses.values()):
+ for harness in sorted (variation.harnesses.values(),
+ key = attrgetter ('name')):
sys.stdout.write ('Running ' + harness.name + ' ...\n')
if self.do_sum:
# Keep the original test result order if there was only