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_options_parser; | 5 library test_options_parser; |
6 | 6 |
7 import "dart:io"; | 7 import "dart:io"; |
8 import "drt_updater.dart"; | 8 import "drt_updater.dart"; |
9 import "test_suite.dart"; | 9 import "test_suite.dart"; |
10 import "path.dart"; | 10 import "path.dart"; |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 type: 'bool'), | 331 type: 'bool'), |
332 new _TestOptionSpecification( | 332 new _TestOptionSpecification( |
333 'write_test_outcome_log', | 333 'write_test_outcome_log', |
334 'Write the outcome of all tests executed to a ' | 334 'Write the outcome of all tests executed to a ' |
335 '"${TestUtils.flakyFileName()}" file.', | 335 '"${TestUtils.flakyFileName()}" file.', |
336 ['--write-test-outcome-log'], | 336 ['--write-test-outcome-log'], |
337 [], | 337 [], |
338 false, | 338 false, |
339 type: 'bool'), | 339 type: 'bool'), |
340 new _TestOptionSpecification( | 340 new _TestOptionSpecification( |
341 'clear_browser_cache', | 341 'reset_browser_configuration', |
342 'Browser specific clearing of caches(i.e., delete it).', | 342 'Browser specific reset of configuration. ' |
343 ['--clear_browser_cache'], | 343 'WARNING: Using this option may remove your bookmarks and ' |
| 344 'other settings.', |
| 345 ['--reset-browser-configuration'], |
344 [], | 346 [], |
345 false, | 347 false, |
346 type: 'bool'), | 348 type: 'bool'), |
347 new _TestOptionSpecification( | 349 new _TestOptionSpecification( |
348 'copy_coredumps', | 350 'copy_coredumps', |
349 'If we see a crash that we did not expect, copy the core dumps. ' | 351 'If we see a crash that we did not expect, copy the core dumps. ' |
350 'to /tmp', | 352 'to /tmp', |
351 ['--copy-coredumps'], | 353 ['--copy-coredumps'], |
352 [], | 354 [], |
353 false, | 355 false, |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 if (option.keys.contains(name)) { | 899 if (option.keys.contains(name)) { |
898 return option; | 900 return option; |
899 } | 901 } |
900 } | 902 } |
901 print('Unknown test option $name'); | 903 print('Unknown test option $name'); |
902 exit(1); | 904 exit(1); |
903 } | 905 } |
904 | 906 |
905 List<_TestOptionSpecification> _options; | 907 List<_TestOptionSpecification> _options; |
906 } | 908 } |
OLD | NEW |