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

Unified Diff: pkg/compiler/tool/status_files/log_parser.dart

Issue 3003273002: update_all: remove user-dependent part of assertion file path (Closed)
Patch Set: Created 3 years, 4 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 | « no previous file | tests/compiler/dart2js_extra/dart2js_extra.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/tool/status_files/log_parser.dart
diff --git a/pkg/compiler/tool/status_files/log_parser.dart b/pkg/compiler/tool/status_files/log_parser.dart
index 9ab36d66691d06bdc37f4471187badebc3dddaf6..eefa94736b2f882910e7f125bfcb088e21961321 100644
--- a/pkg/compiler/tool/status_files/log_parser.dart
+++ b/pkg/compiler/tool/status_files/log_parser.dart
@@ -7,6 +7,8 @@ library status_files.log_parser;
import 'record.dart';
final RegExp _stackRE = new RegExp('#[0-9]* ');
+final RegExp _assertionFileRE = new RegExp(r"'file:[^']*/sdk/pkg/");
+final String _assertionFileReplacement = r"'file:*/pkg/";
/// Extracts test records from a test.py [log].
List<Record> parse(String log) {
@@ -44,6 +46,7 @@ List<Record> parse(String log) {
}
if (line.startsWith("The compiler crashed:")) {
reason = line.substring("The compiler crashed:".length).trim();
+ reason = reason.replaceFirst(_assertionFileRE, _assertionFileReplacement);
paragraph.clear();
}
« no previous file with comments | « no previous file | tests/compiler/dart2js_extra/dart2js_extra.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698