| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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("test_runner.dart"); | 8 #import("test_runner.dart"); |
| 9 #import("test_suite.dart"); | 9 #import("test_suite.dart"); |
| 10 #import("status_file_parser.dart"); | 10 #import("status_file_parser.dart"); |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 if (test.lastCommandOutput.unexpectedOutput) { | 400 if (test.lastCommandOutput.unexpectedOutput) { |
| 401 status = 'fail'; | 401 status = 'fail'; |
| 402 } | 402 } |
| 403 var percent = ((_completedTests() / _foundTests) * 100).toInt().toString(); | 403 var percent = ((_completedTests() / _foundTests) * 100).toInt().toString(); |
| 404 print('Done ${test.configurationString} ${test.displayName}: $status'); | 404 print('Done ${test.configurationString} ${test.displayName}: $status'); |
| 405 print('@@@STEP_CLEAR@@@'); | 405 print('@@@STEP_CLEAR@@@'); |
| 406 print('@@@STEP_TEXT@ $percent% +$_passedTests -$_failedTests @@@'); | 406 print('@@@STEP_TEXT@ $percent% +$_passedTests -$_failedTests @@@'); |
| 407 } | 407 } |
| 408 | 408 |
| 409 void _printFailureSummary() { | 409 void _printFailureSummary() { |
| 410 if (!_failureSummary.isEmpty) { | 410 if (!_failureSummary.isEmpty && stepName != null) { |
| 411 print('@@@STEP_FAILURE@@@'); | 411 print('@@@STEP_FAILURE@@@'); |
| 412 print('@@@BUILD_STEP $stepName failures@@@'); | 412 print('@@@BUILD_STEP $stepName failures@@@'); |
| 413 } | 413 } |
| 414 super._printFailureSummary(); | 414 super._printFailureSummary(); |
| 415 } | 415 } |
| 416 } | 416 } |
| 417 | 417 |
| 418 class DiffProgressIndicator extends ColorProgressIndicator { | 418 class DiffProgressIndicator extends ColorProgressIndicator { |
| 419 Map<String, List<String>> statusToConfigs = new Map<String, List<String>>(); | 419 Map<String, List<String>> statusToConfigs = new Map<String, List<String>>(); |
| 420 | 420 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 print(''); | 463 print(''); |
| 464 print('$config:'); | 464 print('$config:'); |
| 465 statuses.sort((a, b) => a.compareTo(b)); | 465 statuses.sort((a, b) => a.compareTo(b)); |
| 466 for (String status in statuses) { | 466 for (String status in statuses) { |
| 467 print(' $status'); | 467 print(' $status'); |
| 468 } | 468 } |
| 469 }); | 469 }); |
| 470 _printStatus(); | 470 _printStatus(); |
| 471 } | 471 } |
| 472 } | 472 } |
| OLD | NEW |