| 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_configurations; | 5 library test_configurations; |
| 6 | 6 |
| 7 import "dart:async"; | 7 import "dart:async"; |
| 8 import 'dart:io'; | 8 import 'dart:io'; |
| 9 import "dart:math" as math; | 9 import "dart:math" as math; |
| 10 | 10 |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 } | 218 } |
| 219 } | 219 } |
| 220 | 220 |
| 221 void allTestsFinished() { | 221 void allTestsFinished() { |
| 222 for (var conf in configurations) { | 222 for (var conf in configurations) { |
| 223 if (conf.containsKey('_servers_')) { | 223 if (conf.containsKey('_servers_')) { |
| 224 conf['_servers_'].stopServers(); | 224 conf['_servers_'].stopServers(); |
| 225 } | 225 } |
| 226 } | 226 } |
| 227 DebugLogger.close(); | 227 DebugLogger.close(); |
| 228 TestUtils.deleteTempSnapshotDirectory(configurations[0]); |
| 228 } | 229 } |
| 229 | 230 |
| 230 var eventListener = []; | 231 var eventListener = []; |
| 231 | 232 |
| 232 // We don't print progress if we list tests. | 233 // We don't print progress if we list tests. |
| 233 if (progressIndicator != 'silent' && !listTests) { | 234 if (progressIndicator != 'silent' && !listTests) { |
| 234 var printFailures = true; | 235 var printFailures = true; |
| 235 var formatter = new Formatter(); | 236 var formatter = new Formatter(); |
| 236 if (progressIndicator == 'color') { | 237 if (progressIndicator == 'color') { |
| 237 progressIndicator = 'compact'; | 238 progressIndicator = 'compact'; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 recordingOutputPath); | 291 recordingOutputPath); |
| 291 } | 292 } |
| 292 | 293 |
| 293 // Start all the HTTP servers required before starting the process queue. | 294 // Start all the HTTP servers required before starting the process queue. |
| 294 if (serverFutures.isEmpty) { | 295 if (serverFutures.isEmpty) { |
| 295 startProcessQueue(); | 296 startProcessQueue(); |
| 296 } else { | 297 } else { |
| 297 Future.wait(serverFutures).then((_) => startProcessQueue()); | 298 Future.wait(serverFutures).then((_) => startProcessQueue()); |
| 298 } | 299 } |
| 299 } | 300 } |
| OLD | NEW |