| 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:async"; | 7 import "dart:async"; |
| 8 import "dart:io"; | 8 import "dart:io"; |
| 9 import "dart:io" as io; | 9 import "dart:io" as io; |
| 10 import "dart:convert" show JSON; | 10 import "dart:convert" show JSON; |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 * duration: 200.2, | 217 * duration: 200.2, |
| 218 * }, | 218 * }, |
| 219 * ], | 219 * ], |
| 220 * } | 220 * } |
| 221 * }, | 221 * }, |
| 222 */ | 222 */ |
| 223 | 223 |
| 224 static final INTERESTED_CONFIGURATION_PARAMETERS = | 224 static final INTERESTED_CONFIGURATION_PARAMETERS = |
| 225 ['mode', 'arch', 'compiler', 'runtime', 'checked', 'host_checked', | 225 ['mode', 'arch', 'compiler', 'runtime', 'checked', 'host_checked', |
| 226 'minified', 'csp', 'system', 'vm_options', 'use_sdk', | 226 'minified', 'csp', 'system', 'vm_options', 'use_sdk', |
| 227 'use_repository_packages', 'use_public_packages']; | 227 'use_repository_packages', 'use_public_packages', 'builder_tag']; |
| 228 | 228 |
| 229 IOSink _sink; | 229 IOSink _sink; |
| 230 | 230 |
| 231 void done(TestCase test) { | 231 void done(TestCase test) { |
| 232 var name = test.displayName; | 232 var name = test.displayName; |
| 233 var configuration = {}; | 233 var configuration = {}; |
| 234 for (var key in INTERESTED_CONFIGURATION_PARAMETERS) { | 234 for (var key in INTERESTED_CONFIGURATION_PARAMETERS) { |
| 235 configuration[key] = test.configuration[key]; | 235 configuration[key] = test.configuration[key]; |
| 236 } | 236 } |
| 237 var outcome = '${test.lastCommandOutput.result(test)}'; | 237 var outcome = '${test.lastCommandOutput.result(test)}'; |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 return new VerboseProgressIndicator(startTime); | 658 return new VerboseProgressIndicator(startTime); |
| 659 case 'status': | 659 case 'status': |
| 660 return new ProgressIndicator(startTime); | 660 return new ProgressIndicator(startTime); |
| 661 case 'buildbot': | 661 case 'buildbot': |
| 662 return new BuildbotProgressIndicator(startTime); | 662 return new BuildbotProgressIndicator(startTime); |
| 663 default: | 663 default: |
| 664 assert(false); | 664 assert(false); |
| 665 break; | 665 break; |
| 666 } | 666 } |
| 667 } | 667 } |
| OLD | NEW |