Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(757)

Unified Diff: Tools/Scripts/webkitpy/layout_tests/controllers/single_test_runner.py

Issue 1663753002: Apply all blink changes between @202695 and tip of trunk (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/2454_1
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/core/dart/V8Converter.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/Scripts/webkitpy/layout_tests/controllers/single_test_runner.py
diff --git a/Tools/Scripts/webkitpy/layout_tests/controllers/single_test_runner.py b/Tools/Scripts/webkitpy/layout_tests/controllers/single_test_runner.py
index ca1ca97f6925559dc7247b3a9c22b16ce8efe9c3..196ce569975819550603832160c1cb18170ff491 100644
--- a/Tools/Scripts/webkitpy/layout_tests/controllers/single_test_runner.py
+++ b/Tools/Scripts/webkitpy/layout_tests/controllers/single_test_runner.py
@@ -325,6 +325,10 @@ class SingleTestRunner(object):
_observatory_cleaner = re.compile(r"^Observatory.*\n", re.MULTILINE)
_console_observatory_cleaner = re.compile(r"^CONSOLE INFO: Observatory.*\n", re.MULTILINE)
+ _line_number_cleaner = re.compile(r"\(dart:(\w+):\d+\)", re.MULTILINE)
+
+ def _line_number_substitution(self, match):
+ return "(dart:" + match.group(1) + ":xxxx)"
def _get_normalized_output_text(self, output):
"""Returns the normalized text output, i.e. the output in which
@@ -336,6 +340,7 @@ class SingleTestRunner(object):
normalized_lines = output.replace("\r\r\n", "\r\n").replace("\r\n", "\n")
normalized_lines = re.sub(self._observatory_cleaner, r"", normalized_lines)
normalized_lines = re.sub(self._console_observatory_cleaner, r"", normalized_lines)
+ normalized_lines = re.sub(self._line_number_cleaner, self._line_number_substitution, normalized_lines)
return normalized_lines
# FIXME: This function also creates the image diff. Maybe that work should
« no previous file with comments | « Source/bindings/core/dart/V8Converter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698