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

Side by Side Diff: tools/gardening/lib/src/buildbot_loading.dart

Issue 2990363002: Include passing tests in BuildResult.results (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 unified diff | Download patch
« no previous file with comments | « no previous file | tools/gardening/lib/src/buildbot_structures.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:io'; 6 import 'dart:io';
7 import 'util.dart'; 7 import 'util.dart';
8 8
9 import 'buildbot_structures.dart'; 9 import 'buildbot_structures.dart';
10 import 'cache.dart'; 10 import 'cache.dart';
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 results.add(status); 96 results.add(status);
97 failures.add(new TestFailure(buildUri, currentFailure)); 97 failures.add(new TestFailure(buildUri, currentFailure));
98 currentFailure = null; 98 currentFailure = null;
99 } 99 }
100 } else { 100 } else {
101 currentFailure.add(line); 101 currentFailure.add(line);
102 } 102 }
103 } else if (line.startsWith('FAILED:')) { 103 } else if (line.startsWith('FAILED:')) {
104 currentFailure = <String>[]; 104 currentFailure = <String>[];
105 currentFailure.add(line); 105 currentFailure.add(line);
106 } else if (line.startsWith('Done ')) {
107 TestStatus status = parseTestStatus(line);
108 if (status != null) {
109 results.add(status);
110 }
106 } 111 }
107 if (line.startsWith('--- Total time:')) { 112 if (line.startsWith('--- Total time:')) {
108 parsingTimingBlock = true; 113 parsingTimingBlock = true;
109 } else if (parsingTimingBlock) { 114 } else if (parsingTimingBlock) {
110 if (line.startsWith('0:')) { 115 if (line.startsWith('0:')) {
111 timings.addAll(parseTimings(buildUri, line)); 116 timings.addAll(parseTimings(buildUri, line));
112 } else { 117 } else {
113 parsingTimingBlock = false; 118 parsingTimingBlock = false;
114 } 119 }
115 } 120 }
(...skipping 17 matching lines...) Expand all
133 String archName = name.substring(0, slashPos); 138 String archName = name.substring(0, slashPos);
134 String testName = name.substring(slashPos + 1); 139 String testName = name.substring(slashPos + 1);
135 timings.add(new Timing( 140 timings.add(new Timing(
136 uri, 141 uri,
137 time, 142 time,
138 new TestStep( 143 new TestStep(
139 stepName, new TestConfiguration(configName, archName, testName)))); 144 stepName, new TestConfiguration(configName, archName, testName))));
140 } 145 }
141 return timings; 146 return timings;
142 } 147 }
OLDNEW
« no previous file with comments | « no previous file | tools/gardening/lib/src/buildbot_structures.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698