On 05/25/2014 11:35 AM, Richard Sandiford wrote:
Bernd Schmidt <bernds_...@t-online.de> writes:
On 02/13/2014 10:18 AM, Richard Sandiford wrote:
contrib/
        * dg-extract-results.py: New file.
        * dg-extract-results.sh: Use it if the environment seems suitable.

I'm now seeing the following:

Traceback (most recent call last):
    File "../../git/gcc/../contrib/dg-extract-results.py", line 581, in
<module>
      Prog().main()
    File "../../git/gcc/../contrib/dg-extract-results.py", line 569, in main
      self.output_tool (self.runs[name])
    File "../../git/gcc/../contrib/dg-extract-results.py", line 534, in
output_tool
      self.output_variation (tool, variation)
    File "../../git/gcc/../contrib/dg-extract-results.py", line 483, in
output_variation
      for harness in sorted (variation.harnesses.values()):
TypeError: unorderable types: HarnessRun() < HarnessRun()

$ /usr/bin/python --version
Python 3.3.3

Sorry, thought I'd tested it with python3, but obviously not.
I've applied the fix below after testing that it didn't change the
output for python 2.6 and python 2.7.

I've recently been trying to add ada to my set of tested languages, and I now encounter the following:

Traceback (most recent call last):
File "../../git/gcc/../contrib/dg-extract-results.py", line 580, in <module>
    Prog().main()
  File "../../git/gcc/../contrib/dg-extract-results.py", line 544, in main
    self.parse_file (filename, file)
File "../../git/gcc/../contrib/dg-extract-results.py", line 427, in parse_file
    self.parse_acats_run (filename, file)
File "../../git/gcc/../contrib/dg-extract-results.py", line 342, in parse_acats_run
    self.parse_run (filename, file, tool, variation, 1)
File "../../git/gcc/../contrib/dg-extract-results.py", line 242, in parse_run
    line = file.readline()
  File "/usr/lib64/python3.3/codecs.py", line 301, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe1 in position 5227: invalid continuation byte


Bernd

Reply via email to