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

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

Issue 16820002: [Android] Separate concepts of pushing test data and installing test apk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Nilesh's comments Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « build/android/pylib/uiautomator/test_runner.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 # 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 option_parser.add_option('--tool', 84 option_parser.add_option('--tool',
85 dest='tool', 85 dest='tool',
86 help='Run the test under a tool ' 86 help='Run the test under a tool '
87 '(use --tool help to list them)') 87 '(use --tool help to list them)')
88 option_parser.add_option('--flakiness-dashboard-server', 88 option_parser.add_option('--flakiness-dashboard-server',
89 dest='flakiness_dashboard_server', 89 dest='flakiness_dashboard_server',
90 help=('Address of the server that is hosting the ' 90 help=('Address of the server that is hosting the '
91 'Chrome for Android flakiness dashboard.')) 91 'Chrome for Android flakiness dashboard.'))
92 option_parser.add_option('--skip-deps-push', dest='push_deps', 92 option_parser.add_option('--skip-deps-push', dest='push_deps',
93 action='store_false', default=True, 93 action='store_false', default=True,
94 help='Do not push dependencies to the device. ' 94 help='Do not push data dependencies to the device. '
95 'Use this at own risk for speeding up test ' 95 'Use this at own risk for speeding up test '
96 'execution on local machine.') 96 'execution on local machine.')
97 AddBuildTypeOption(option_parser) 97 AddBuildTypeOption(option_parser)
98 98
99 99
100 def AddGTestOptions(option_parser): 100 def AddGTestOptions(option_parser):
101 """Decorates OptionParser with GTest tests options.""" 101 """Decorates OptionParser with GTest tests options."""
102 102
103 AddTestRunnerOptions(option_parser, default_timeout=0) 103 AddTestRunnerOptions(option_parser, default_timeout=0)
104 option_parser.add_option('-s', '--suite', dest='test_suite', 104 option_parser.add_option('-s', '--suite', dest='test_suite',
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 # The dexed JAR is fully qualified, assume the info JAR lives along side. 287 # The dexed JAR is fully qualified, assume the info JAR lives along side.
288 options.uiautomator_jar = options.test_jar 288 options.uiautomator_jar = options.test_jar
289 else: 289 else:
290 options.uiautomator_jar = os.path.join( 290 options.uiautomator_jar = os.path.join(
291 _SDK_OUT_DIR, options.build_type, constants.SDK_BUILD_JAVALIB_DIR, 291 _SDK_OUT_DIR, options.build_type, constants.SDK_BUILD_JAVALIB_DIR,
292 '%s.dex.jar' % options.test_jar) 292 '%s.dex.jar' % options.test_jar)
293 options.uiautomator_info_jar = ( 293 options.uiautomator_info_jar = (
294 options.uiautomator_jar[:options.uiautomator_jar.find('.dex.jar')] + 294 options.uiautomator_jar[:options.uiautomator_jar.find('.dex.jar')] +
295 '_java.jar') 295 '_java.jar')
296 296
OLDNEW
« no previous file with comments | « build/android/pylib/uiautomator/test_runner.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698