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

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

Issue 11093009: Add an option for disabling java assertions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 1 month 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/run_java_tests.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 import constants 7 import constants
8 import optparse 8 import optparse
9 import os 9 import os
10 import sys 10 import sys
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 'should not be reset.') 117 'should not be reset.')
118 option_parser.add_option('--flakiness-dashboard-server', 118 option_parser.add_option('--flakiness-dashboard-server',
119 dest='flakiness_dashboard_server', 119 dest='flakiness_dashboard_server',
120 help=('Address of the server that is hosting the ' 120 help=('Address of the server that is hosting the '
121 'Chrome for Android flakiness dashboard.')) 121 'Chrome for Android flakiness dashboard.'))
122 option_parser.add_option('--buildbot-step-failure', 122 option_parser.add_option('--buildbot-step-failure',
123 action='store_true', 123 action='store_true',
124 help=('If present, will set the buildbot status ' 124 help=('If present, will set the buildbot status '
125 'as STEP_FAILURE, otherwise as STEP_WARNINGS ' 125 'as STEP_FAILURE, otherwise as STEP_WARNINGS '
126 'when test(s) fail.')) 126 'when test(s) fail.'))
127 option_parser.add_option('--disable_assertions', action='store_true',
128 help='Run with java assertions disabled.')
127 129
128 130
129 def ValidateInstrumentationOptions(option_parser, options, args): 131 def ValidateInstrumentationOptions(option_parser, options, args):
130 """Validate options/arguments and populate options with defaults.""" 132 """Validate options/arguments and populate options with defaults."""
131 if len(args) > 1: 133 if len(args) > 1:
132 option_parser.print_help(sys.stderr) 134 option_parser.print_help(sys.stderr)
133 option_parser.error('Unknown arguments: %s' % args[1:]) 135 option_parser.error('Unknown arguments: %s' % args[1:])
134 if options.java_only and options.python_only: 136 if options.java_only and options.python_only:
135 option_parser.error('Options java_only (-j) and python_only (-p) ' 137 option_parser.error('Options java_only (-j) and python_only (-p) '
136 'are mutually exclusive.') 138 'are mutually exclusive.')
(...skipping 18 matching lines...) Expand all
155 '%s.apk' % options.test_apk) 157 '%s.apk' % options.test_apk)
156 options.test_apk_jar_path = os.path.join( 158 options.test_apk_jar_path = os.path.join(
157 _SDK_OUT_DIR, options.build_type, constants.SDK_BUILD_TEST_JAVALIB_DIR, 159 _SDK_OUT_DIR, options.build_type, constants.SDK_BUILD_TEST_JAVALIB_DIR,
158 '%s.jar' % options.test_apk) 160 '%s.jar' % options.test_apk)
159 if options.annotation_str: 161 if options.annotation_str:
160 options.annotation = options.annotation_str.split() 162 options.annotation = options.annotation_str.split()
161 elif options.test_filter: 163 elif options.test_filter:
162 options.annotation = [] 164 options.annotation = []
163 else: 165 else:
164 options.annotation = ['Smoke', 'SmallTest', 'MediumTest', 'LargeTest'] 166 options.annotation = ['Smoke', 'SmallTest', 'MediumTest', 'LargeTest']
OLDNEW
« no previous file with comments | « build/android/pylib/run_java_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698