| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |