Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2013 The Chromium Authors. All rights reserved. | 3 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 """Runs all types of tests from one unified interface.""" | 7 """Runs all types of tests from one unified interface.""" |
| 8 | 8 |
| 9 import argparse | 9 import argparse |
| 10 import collections | 10 import collections |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 197 group.add_argument('-t', '--shard-timeout', | 197 group.add_argument('-t', '--shard-timeout', |
| 198 dest='shard_timeout', type=int, default=120, | 198 dest='shard_timeout', type=int, default=120, |
| 199 help='Timeout to wait for each test ' | 199 help='Timeout to wait for each test ' |
| 200 '(default: %(default)s).') | 200 '(default: %(default)s).') |
| 201 group.add_argument('--isolate_file_path', | 201 group.add_argument('--isolate_file_path', |
| 202 '--isolate-file-path', | 202 '--isolate-file-path', |
| 203 dest='isolate_file_path', | 203 dest='isolate_file_path', |
| 204 type=os.path.realpath, | 204 type=os.path.realpath, |
| 205 help='.isolate file path to override the default ' | 205 help='.isolate file path to override the default ' |
| 206 'path') | 206 'path') |
| 207 group.add_argument('--gn-variable-json') | |
|
agrieve
2016/11/15 15:51:01
unused?
jbudorick
2016/11/15 19:33:15
oops, leftover from a previous sketch. Removed.
| |
| 207 group.add_argument('--app-data-file', action='append', dest='app_data_files', | 208 group.add_argument('--app-data-file', action='append', dest='app_data_files', |
| 208 help='A file path relative to the app data directory ' | 209 help='A file path relative to the app data directory ' |
| 209 'that should be saved to the host.') | 210 'that should be saved to the host.') |
| 210 group.add_argument('--app-data-file-dir', | 211 group.add_argument('--app-data-file-dir', |
| 211 help='Host directory to which app data files will be' | 212 help='Host directory to which app data files will be' |
| 212 ' saved. Used with --app-data-file.') | 213 ' saved. Used with --app-data-file.') |
| 213 group.add_argument('--delete-stale-data', dest='delete_stale_data', | 214 group.add_argument('--delete-stale-data', dest='delete_stale_data', |
| 214 action='store_true', | 215 action='store_true', |
| 215 help='Delete stale test data on the device.') | 216 help='Delete stale test data on the device.') |
| 216 group.add_argument('--repeat', '--gtest_repeat', '--gtest-repeat', | 217 group.add_argument('--repeat', '--gtest_repeat', '--gtest-repeat', |
| (...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 879 if e.is_infra_error: | 880 if e.is_infra_error: |
| 880 return constants.INFRA_EXIT_CODE | 881 return constants.INFRA_EXIT_CODE |
| 881 return constants.ERROR_EXIT_CODE | 882 return constants.ERROR_EXIT_CODE |
| 882 except: # pylint: disable=W0702 | 883 except: # pylint: disable=W0702 |
| 883 logging.exception('Unrecognized error occurred.') | 884 logging.exception('Unrecognized error occurred.') |
| 884 return constants.ERROR_EXIT_CODE | 885 return constants.ERROR_EXIT_CODE |
| 885 | 886 |
| 886 | 887 |
| 887 if __name__ == '__main__': | 888 if __name__ == '__main__': |
| 888 sys.exit(main()) | 889 sys.exit(main()) |
| OLD | NEW |