| 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 onDone: () { | 303 onDone: () { |
| 304 if (count > MIN_NUMBER_OF_TEMP_DIRS) { | 304 if (count > MIN_NUMBER_OF_TEMP_DIRS) { |
| 305 DebugLogger.warning("There are ${count} directories " | 305 DebugLogger.warning("There are ${count} directories " |
| 306 "in the system tempdir ('$systemTempDir')! " | 306 "in the system tempdir ('$systemTempDir')! " |
| 307 "Maybe left over directories?\n"); | 307 "Maybe left over directories?\n"); |
| 308 } | 308 } |
| 309 }); | 309 }); |
| 310 } | 310 } |
| 311 } | 311 } |
| 312 | 312 |
| 313 class LineProgressIndicator extends EventListener { | 313 class LineProgressIndicator extends EventListener implements ProgressIndicator { |
| 314 void done(TestCase test) { | 314 void done(TestCase test) { |
| 315 var status = 'pass'; | 315 var status = 'pass'; |
| 316 if (test.lastCommandOutput.unexpectedOutput) { | 316 if (test.lastCommandOutput.unexpectedOutput) { |
| 317 status = 'fail'; | 317 status = 'fail'; |
| 318 } | 318 } |
| 319 print('Done ${test.configurationString} ${test.displayName}: $status'); | 319 print('Done ${test.configurationString} ${test.displayName}: $status'); |
| 320 } | 320 } |
| 321 } | 321 } |
| 322 | 322 |
| 323 class TestFailurePrinter extends EventListener { | 323 class TestFailurePrinter extends EventListener { |
| (...skipping 193 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 |