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

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

Issue 16627004: [Android] Add --skip-deps-push to test scripts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 'Pass multiple times to run multiple profilers. ' 82 'Pass multiple times to run multiple profilers. '
83 'Available profilers: %s' % profilers) 83 'Available profilers: %s' % profilers)
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',
93 action='store_false', default=True,
94 help='Do not push dependencies to the device. '
95 'Use this at own risk for speeding up test '
96 'execution on local machine.')
92 AddBuildTypeOption(option_parser) 97 AddBuildTypeOption(option_parser)
93 98
94 99
95 def AddGTestOptions(option_parser): 100 def AddGTestOptions(option_parser):
96 """Decorates OptionParser with GTest tests options.""" 101 """Decorates OptionParser with GTest tests options."""
97 102
98 AddTestRunnerOptions(option_parser, default_timeout=0) 103 AddTestRunnerOptions(option_parser, default_timeout=0)
99 option_parser.add_option('-s', '--suite', dest='test_suite', 104 option_parser.add_option('-s', '--suite', dest='test_suite',
100 help='Executable name of the test suite to run ' 105 help='Executable name of the test suite to run '
101 '(use -s help to list them).') 106 '(use -s help to list them).')
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 # 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.
283 options.uiautomator_jar = options.test_jar 288 options.uiautomator_jar = options.test_jar
284 else: 289 else:
285 options.uiautomator_jar = os.path.join( 290 options.uiautomator_jar = os.path.join(
286 _SDK_OUT_DIR, options.build_type, constants.SDK_BUILD_JAVALIB_DIR, 291 _SDK_OUT_DIR, options.build_type, constants.SDK_BUILD_JAVALIB_DIR,
287 '%s.dex.jar' % options.test_jar) 292 '%s.dex.jar' % options.test_jar)
288 options.uiautomator_info_jar = ( 293 options.uiautomator_info_jar = (
289 options.uiautomator_jar[:options.uiautomator_jar.find('.dex.jar')] + 294 options.uiautomator_jar[:options.uiautomator_jar.find('.dex.jar')] +
290 '_java.jar') 295 '_java.jar')
291 296
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698