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

Side by Side Diff: tools/testing/dart/test_progress.dart

Issue 14251009: Only print the failure summary header if there were failures (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library test_progress; 5 library test_progress;
6 6
7 import "dart:io"; 7 import "dart:io";
8 import "dart:io" as io; 8 import "dart:io" as io;
9 import "http_server.dart" as http_server; 9 import "http_server.dart" as http_server;
10 import "status_file_parser.dart"; 10 import "status_file_parser.dart";
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 print(''); 337 print('');
338 if (_printSummary) { 338 if (_printSummary) {
339 _failureSummary.addAll(lines); 339 _failureSummary.addAll(lines);
340 _failureSummary.add(''); 340 _failureSummary.add('');
341 } 341 }
342 } 342 }
343 } 343 }
344 344
345 void allDone() { 345 void allDone() {
346 if (_printSummary) { 346 if (_printSummary) {
347 print('\n=== Failure summary:\n');
348 if (!_failureSummary.isEmpty) { 347 if (!_failureSummary.isEmpty) {
348 print('\n=== Failure summary:\n');
349 for (String line in _failureSummary) { 349 for (String line in _failureSummary) {
350 print(line); 350 print(line);
351 } 351 }
352 print(''); 352 print('');
353 } 353 }
354 } 354 }
355 } 355 }
356 } 356 }
357 357
358 class ProgressIndicator extends EventListener { 358 class ProgressIndicator extends EventListener {
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 print('@@@BUILD_STEP $stepName failures@@@'); 517 print('@@@BUILD_STEP $stepName failures@@@');
518 } 518 }
519 for (String line in _failureSummary) { 519 for (String line in _failureSummary) {
520 print(line); 520 print(line);
521 } 521 }
522 print(''); 522 print('');
523 } 523 }
524 super.allDone(); 524 super.allDone();
525 } 525 }
526 } 526 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698