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

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

Issue 814653003: Clean up logging and add device randomization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 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
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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 def AddRemoteDeviceOptions(parser): 122 def AddRemoteDeviceOptions(parser):
123 group = parser.add_argument_group('Remote Device Options') 123 group = parser.add_argument_group('Remote Device Options')
124 124
125 group.add_argument('--trigger', default='', 125 group.add_argument('--trigger', default='',
126 help=('Only triggers the test if set. Stores test_run_id ' 126 help=('Only triggers the test if set. Stores test_run_id '
127 'in given file path. ')) 127 'in given file path. '))
128 group.add_argument('--collect', default='', 128 group.add_argument('--collect', default='',
129 help=('Only collects the test results if set. ' 129 help=('Only collects the test results if set. '
130 'Gets test_run_id from given file path.')) 130 'Gets test_run_id from given file path.'))
131 group.add_argument('--remote-device', default='Nexus 5', 131 group.add_argument('--remote-device', default='',
132 help=('Device type to run test on.')) 132 help=('Device type to run test on.'))
133 group.add_argument('--remote-device-os', default='4.4.2', 133 group.add_argument('--remote-device-os', default='',
134 help=('OS to have on the device.')) 134 help=('OS to have on the device.'))
135 group.add_argument('--results-path', default='', 135 group.add_argument('--results-path', default='',
136 help=('File path to download results to.')) 136 help=('File path to download results to.'))
137 group.add_argument('--api-protocol', 137 group.add_argument('--api-protocol',
138 help=('HTTP protocol to use. (http or https)')) 138 help=('HTTP protocol to use. (http or https)'))
139 group.add_argument('--api-address', help=('Address to send HTTP requests.')) 139 group.add_argument('--api-address', help=('Address to send HTTP requests.'))
140 group.add_argument('--api-port', help=('Port to send HTTP requests to.')) 140 group.add_argument('--api-port', help=('Port to send HTTP requests to.'))
141 group.add_argument('--runner-type', default='', 141 group.add_argument('--runner-type', default='',
142 help=('Type of test to run as.')) 142 help=('Type of test to run as.'))
143 group.add_argument('--runner-package', default='', 143 group.add_argument('--runner-package', default='',
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 subparser = command_parsers.add_parser( 984 subparser = command_parsers.add_parser(
985 test_type, usage='%(prog)s [options]', help=config.help_txt) 985 test_type, usage='%(prog)s [options]', help=config.help_txt)
986 config.add_options_func(subparser) 986 config.add_options_func(subparser)
987 987
988 args = parser.parse_args() 988 args = parser.parse_args()
989 return RunTestsCommand(args, parser) 989 return RunTestsCommand(args, parser)
990 990
991 991
992 if __name__ == '__main__': 992 if __name__ == '__main__':
993 sys.exit(main()) 993 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698