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

Side by Side Diff: build/android/pylib/utils/test_options_parser.py

Issue 13300002: Android: fixes emulator support in unit test scripts. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix nits Created 7 years, 8 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 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Parses options for the instrumentation tests.""" 5 """Parses options for the instrumentation tests."""
6 6
7 #TODO(craigdh): pylib/utils/ should not depend on pylib/. 7 #TODO(craigdh): pylib/utils/ should not depend on pylib/.
8 from pylib import constants 8 from pylib import constants
9 9
10 import optparse 10 import optparse
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 help='Run the tests from a WebKit checkout.') 119 help='Run the tests from a WebKit checkout.')
120 option_parser.add_option('--repeat', dest='repeat', type='int', 120 option_parser.add_option('--repeat', dest='repeat', type='int',
121 default=2, 121 default=2,
122 help='Repeat count on test timeout.') 122 help='Repeat count on test timeout.')
123 option_parser.add_option('--exit_code', action='store_true', 123 option_parser.add_option('--exit_code', action='store_true',
124 help='If set, the exit code will be total number ' 124 help='If set, the exit code will be total number '
125 'of failures.') 125 'of failures.')
126 option_parser.add_option('--exe', action='store_true', 126 option_parser.add_option('--exe', action='store_true',
127 help='If set, use the exe test runner instead of ' 127 help='If set, use the exe test runner instead of '
128 'the APK.') 128 'the APK.')
129 option_parser.add_option('--abi', default='armeabi-v7a',
130 help='Platform of emulators to launch.')
129 131
130 132
131 def AddCommonInstrumentationOptions(option_parser): 133 def AddCommonInstrumentationOptions(option_parser):
132 """Decorates OptionParser with base instrumentation tests options.""" 134 """Decorates OptionParser with base instrumentation tests options."""
133 135
134 AddTestRunnerOptions(option_parser) 136 AddTestRunnerOptions(option_parser)
135 option_parser.add_option('-w', '--wait_debugger', dest='wait_for_debugger', 137 option_parser.add_option('-w', '--wait_debugger', dest='wait_for_debugger',
136 action='store_true', help='Wait for debugger.') 138 action='store_true', help='Wait for debugger.')
137 option_parser.add_option('-f', '--test_filter', 139 option_parser.add_option('-f', '--test_filter',
138 help='Test filter (if not fully qualified, ' 140 help='Test filter (if not fully qualified, '
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 270
269 if not options.package_name: 271 if not options.package_name:
270 option_parser.error('--package-name must be specified.') 272 option_parser.error('--package-name must be specified.')
271 273
272 if not options.uiautomator_jar: 274 if not options.uiautomator_jar:
273 option_parser.error('--uiautomator-jar must be specified.') 275 option_parser.error('--uiautomator-jar must be specified.')
274 276
275 if not options.uiautomator_info_jar: 277 if not options.uiautomator_info_jar:
276 option_parser.error('--uiautomator-info-jar must be specified.') 278 option_parser.error('--uiautomator-info-jar must be specified.')
277 279
OLDNEW
« build/android/pylib/utils/emulator.py ('K') | « build/android/pylib/utils/emulator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698