| Index: test/test262/testcfg.py
|
| diff --git a/test/test262/testcfg.py b/test/test262/testcfg.py
|
| index 391b0e8c4f8119b3156240d09e3947aa054bd4b8..93d891530e07f1af43d64fbb4b96e23e46cf7472 100644
|
| --- a/test/test262/testcfg.py
|
| +++ b/test/test262/testcfg.py
|
| @@ -28,6 +28,7 @@
|
|
|
| import imp
|
| import os
|
| +import re
|
| import sys
|
| import tarfile
|
|
|
| @@ -184,10 +185,9 @@ class Test262TestSuite(testsuite.TestSuite):
|
| return f.read()
|
|
|
| def _ParseException(self, str):
|
| - for line in str.split("\n")[::-1]:
|
| - if line and not line[0].isspace() and ":" in line:
|
| - return line.split(":")[0]
|
| -
|
| + # somefile:somelinenumber: someerror[: sometext]
|
| + match = re.search('^[^: ]*:[0-9]+: ([^ ]+?)($|: )', str, re.MULTILINE)
|
| + return match.group(1)
|
|
|
| def IsFailureOutput(self, testcase):
|
| output = testcase.output
|
|
|