Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Side by Side Diff: build/android/test_runner.py

Issue 2502363005: [android] Stop using isolate.py for data dependency management. (RELAND) (Closed)
Patch Set: fixed: moved the runtime_deps file. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/android/pylib/utils/isolator.py ('k') | build/android/test_runner.pydeps » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 '--gtest-also-run-disabled-tests', 189 '--gtest-also-run-disabled-tests',
190 dest='run_disabled', action='store_true', 190 dest='run_disabled', action='store_true',
191 help='Also run disabled tests if applicable.') 191 help='Also run disabled tests if applicable.')
192 group.add_argument('-a', '--test-arguments', dest='test_arguments', 192 group.add_argument('-a', '--test-arguments', dest='test_arguments',
193 default='', 193 default='',
194 help='Additional arguments to pass to the test.') 194 help='Additional arguments to pass to the test.')
195 group.add_argument('-t', '--shard-timeout', 195 group.add_argument('-t', '--shard-timeout',
196 dest='shard_timeout', type=int, default=120, 196 dest='shard_timeout', type=int, default=120,
197 help='Timeout to wait for each test ' 197 help='Timeout to wait for each test '
198 '(default: %(default)s).') 198 '(default: %(default)s).')
199 # TODO(jbudorick): Remove this after ensuring nothing else uses it.
199 group.add_argument('--isolate_file_path', 200 group.add_argument('--isolate_file_path',
200 '--isolate-file-path', 201 '--isolate-file-path',
201 dest='isolate_file_path', 202 dest='isolate_file_path',
202 type=os.path.realpath, 203 type=os.path.realpath,
203 help='.isolate file path to override the default ' 204 help=argparse.SUPPRESS)
204 'path') 205 group.add_argument('--runtime-deps-path',
206 dest='runtime_deps_path',
207 type=os.path.realpath,
208 help='Runtime data dependency file from GN.')
205 group.add_argument('--app-data-file', action='append', dest='app_data_files', 209 group.add_argument('--app-data-file', action='append', dest='app_data_files',
206 help='A file path relative to the app data directory ' 210 help='A file path relative to the app data directory '
207 'that should be saved to the host.') 211 'that should be saved to the host.')
208 group.add_argument('--app-data-file-dir', 212 group.add_argument('--app-data-file-dir',
209 help='Host directory to which app data files will be' 213 help='Host directory to which app data files will be'
210 ' saved. Used with --app-data-file.') 214 ' saved. Used with --app-data-file.')
211 group.add_argument('--delete-stale-data', dest='delete_stale_data', 215 group.add_argument('--delete-stale-data', dest='delete_stale_data',
212 action='store_true', 216 action='store_true',
213 help='Delete stale test data on the device.') 217 help='Delete stale test data on the device.')
214 group.add_argument('--repeat', '--gtest_repeat', '--gtest-repeat', 218 group.add_argument('--repeat', '--gtest_repeat', '--gtest-repeat',
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 group.add_argument('--coverage-dir', type=os.path.realpath, 357 group.add_argument('--coverage-dir', type=os.path.realpath,
354 help=('Directory in which to place all generated ' 358 help=('Directory in which to place all generated '
355 'EMMA coverage files.')) 359 'EMMA coverage files.'))
356 group.add_argument('--device-flags', dest='device_flags', 360 group.add_argument('--device-flags', dest='device_flags',
357 type=os.path.realpath, 361 type=os.path.realpath,
358 help='The relative filepath to a file containing ' 362 help='The relative filepath to a file containing '
359 'command-line flags to set on the device') 363 'command-line flags to set on the device')
360 group.add_argument('--device-flags-file', type=os.path.realpath, 364 group.add_argument('--device-flags-file', type=os.path.realpath,
361 help='The relative filepath to a file containing ' 365 help='The relative filepath to a file containing '
362 'command-line flags to set on the device') 366 'command-line flags to set on the device')
367 # TODO(jbudorick): Remove this after ensuring nothing else uses it.
363 group.add_argument('--isolate_file_path', 368 group.add_argument('--isolate_file_path',
364 '--isolate-file-path', 369 '--isolate-file-path',
365 dest='isolate_file_path', 370 dest='isolate_file_path',
366 type=os.path.realpath, 371 type=os.path.realpath,
367 help='.isolate file path to override the default ' 372 help=argparse.SUPPRESS)
368 'path') 373 group.add_argument('--runtime-deps-path',
374 dest='runtime_deps_path',
375 type=os.path.realpath,
376 help='Runtime data dependency file from GN.')
369 group.add_argument('--delete-stale-data', dest='delete_stale_data', 377 group.add_argument('--delete-stale-data', dest='delete_stale_data',
370 action='store_true', 378 action='store_true',
371 help='Delete stale test data on the device.') 379 help='Delete stale test data on the device.')
372 group.add_argument('--timeout-scale', type=float, 380 group.add_argument('--timeout-scale', type=float,
373 help='Factor by which timeouts should be scaled.') 381 help='Factor by which timeouts should be scaled.')
374 group.add_argument('--strict-mode', dest='strict_mode', default='testing', 382 group.add_argument('--strict-mode', dest='strict_mode', default='testing',
375 help='StrictMode command-line flag set on the device, ' 383 help='StrictMode command-line flag set on the device, '
376 'death/testing to kill the process, off to stop ' 384 'death/testing to kill the process, off to stop '
377 'checking, flash to flash only. Default testing.') 385 'checking, flash to flash only. Default testing.')
378 group.add_argument('--regenerate-goldens', dest='regenerate_goldens', 386 group.add_argument('--regenerate-goldens', dest='regenerate_goldens',
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 if e.is_infra_error: 845 if e.is_infra_error:
838 return constants.INFRA_EXIT_CODE 846 return constants.INFRA_EXIT_CODE
839 return constants.ERROR_EXIT_CODE 847 return constants.ERROR_EXIT_CODE
840 except: # pylint: disable=W0702 848 except: # pylint: disable=W0702
841 logging.exception('Unrecognized error occurred.') 849 logging.exception('Unrecognized error occurred.')
842 return constants.ERROR_EXIT_CODE 850 return constants.ERROR_EXIT_CODE
843 851
844 852
845 if __name__ == '__main__': 853 if __name__ == '__main__':
846 sys.exit(main()) 854 sys.exit(main())
OLDNEW
« no previous file with comments | « build/android/pylib/utils/isolator.py ('k') | build/android/test_runner.pydeps » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698