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

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

Issue 2105383004: Updated files Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment out logdog changes. Created 4 years, 5 months 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/local/device/local_device_environment.py ('k') | no next file » | 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 group.add_argument('-e', '--environment', default='local', 97 group.add_argument('-e', '--environment', default='local',
98 choices=constants.VALID_ENVIRONMENTS, 98 choices=constants.VALID_ENVIRONMENTS,
99 help='Test environment to run in (default: %(default)s).') 99 help='Test environment to run in (default: %(default)s).')
100 group.add_argument('--adb-path', type=os.path.abspath, 100 group.add_argument('--adb-path', type=os.path.abspath,
101 help=('Specify the absolute path of the adb binary that ' 101 help=('Specify the absolute path of the adb binary that '
102 'should be used.')) 102 'should be used.'))
103 group.add_argument('--json-results-file', '--test-launcher-summary-output', 103 group.add_argument('--json-results-file', '--test-launcher-summary-output',
104 dest='json_results_file', 104 dest='json_results_file',
105 help='If set, will dump results in JSON form ' 105 help='If set, will dump results in JSON form '
106 'to specified file.') 106 'to specified file.')
107 group.add_argument('--logdog_butler-dir',
108 help='If set, contains the location of the logdog butler '
109 'for streaming logcats')
110 group.add_argument('--logdog_butler-prefix',
111 help='Must be set to use to use logdog butler.'
112 'Contains the prefix to use for the logdog butler.')
113 group.add_argument('--logdog_butler-project',
114 help='Must be set to use logdog butler.'
115 'Contains the project name for logdog butler.')
107 116
108 logcat_output_group = group.add_mutually_exclusive_group() 117 logcat_output_group = group.add_mutually_exclusive_group()
109 logcat_output_group.add_argument( 118 logcat_output_group.add_argument(
110 '--logcat-output-dir', 119 '--logcat-output-dir',
111 help='If set, will dump logcats recorded during test run to directory. ' 120 help='If set, will dump logcats recorded during test run to directory. '
112 'File names will be the device ids with timestamps.') 121 'File names will be the device ids with timestamps.')
113 logcat_output_group.add_argument( 122 logcat_output_group.add_argument(
114 '--logcat-output-file', 123 '--logcat-output-file',
115 help='If set, will merge logcats recorded during test run and dump them ' 124 help='If set, will merge logcats recorded during test run and dump them '
116 'to the specified file.') 125 'to the specified file.')
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
981 if e.is_infra_error: 990 if e.is_infra_error:
982 return constants.INFRA_EXIT_CODE 991 return constants.INFRA_EXIT_CODE
983 return constants.ERROR_EXIT_CODE 992 return constants.ERROR_EXIT_CODE
984 except: # pylint: disable=W0702 993 except: # pylint: disable=W0702
985 logging.exception('Unrecognized error occurred.') 994 logging.exception('Unrecognized error occurred.')
986 return constants.ERROR_EXIT_CODE 995 return constants.ERROR_EXIT_CODE
987 996
988 997
989 if __name__ == '__main__': 998 if __name__ == '__main__':
990 sys.exit(main()) 999 sys.exit(main())
OLDNEW
« no previous file with comments | « build/android/pylib/local/device/local_device_environment.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698