| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 var buf = new StringBuffer(); | 181 var buf = new StringBuffer(); |
| 182 for (var l in _buildFailureOutput(test)) { | 182 for (var l in _buildFailureOutput(test)) { |
| 183 buf.write("$l\n"); | 183 buf.write("$l\n"); |
| 184 } | 184 } |
| 185 _appendToFlakyFile(buf.toString()); | 185 _appendToFlakyFile(buf.toString()); |
| 186 } | 186 } |
| 187 } | 187 } |
| 188 | 188 |
| 189 void _appendToFlakyFile(String msg) { | 189 void _appendToFlakyFile(String msg) { |
| 190 var file = new File(TestUtils.flakyFileName()); | 190 var file = new File(TestUtils.flakyFileName()); |
| 191 var fd = file.openSync(FileMode.APPEND); | 191 var fd = file.openSync(mode: FileMode.APPEND); |
| 192 fd.writeStringSync(msg); | 192 fd.writeStringSync(msg); |
| 193 fd.closeSync(); | 193 fd.closeSync(); |
| 194 } | 194 } |
| 195 } | 195 } |
| 196 | 196 |
| 197 class SummaryPrinter extends EventListener { | 197 class SummaryPrinter extends EventListener { |
| 198 void allTestsKnown() { | 198 void allTestsKnown() { |
| 199 if (SummaryReport.total > 0) { | 199 if (SummaryReport.total > 0) { |
| 200 SummaryReport.printReport(); | 200 SummaryReport.printReport(); |
| 201 } | 201 } |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 print('@@@BUILD_STEP $stepName failures@@@'); | 535 print('@@@BUILD_STEP $stepName failures@@@'); |
| 536 } | 536 } |
| 537 for (String line in _failureSummary) { | 537 for (String line in _failureSummary) { |
| 538 print(line); | 538 print(line); |
| 539 } | 539 } |
| 540 print(''); | 540 print(''); |
| 541 } | 541 } |
| 542 print(_buildSummaryEnd(_failedTests)); | 542 print(_buildSummaryEnd(_failedTests)); |
| 543 } | 543 } |
| 544 } | 544 } |
| OLD | NEW |