| 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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 if (test.lastCommandOutput.unexpectedOutput) { | 497 if (test.lastCommandOutput.unexpectedOutput) { |
| 498 status = 'fail'; | 498 status = 'fail'; |
| 499 } | 499 } |
| 500 var percent = ((_completedTests() / _foundTests) * 100).toInt().toString(); | 500 var percent = ((_completedTests() / _foundTests) * 100).toInt().toString(); |
| 501 print('Done ${test.configurationString} ${test.displayName}: $status'); | 501 print('Done ${test.configurationString} ${test.displayName}: $status'); |
| 502 print('@@@STEP_CLEAR@@@'); | 502 print('@@@STEP_CLEAR@@@'); |
| 503 print('@@@STEP_TEXT@ $percent% +$_passedTests -$_failedTests @@@'); | 503 print('@@@STEP_TEXT@ $percent% +$_passedTests -$_failedTests @@@'); |
| 504 } | 504 } |
| 505 | 505 |
| 506 void allDone() { | 506 void allDone() { |
| 507 if (!_failureSummary.isEmpty && stepName != null) { | 507 if (!_failureSummary.isEmpty) { |
| 508 print('@@@STEP_FAILURE@@@'); | 508 print('@@@STEP_FAILURE@@@'); |
| 509 print('@@@BUILD_STEP $stepName failures@@@'); | 509 if (stepName != null) { |
| 510 print('@@@BUILD_STEP $stepName failures@@@'); |
| 511 } |
| 510 for (String line in _failureSummary) { | 512 for (String line in _failureSummary) { |
| 511 print(line); | 513 print(line); |
| 512 } | 514 } |
| 513 print(''); | 515 print(''); |
| 514 } | 516 } |
| 515 super.allDone(); | 517 super.allDone(); |
| 516 } | 518 } |
| 517 } | 519 } |
| OLD | NEW |