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

Unified Diff: build/android/pylib/test_options_parser.py

Issue 11231076: Android: upstream latest changes for build/android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/pylib/buildbot_report.py ('k') | build/android/run_instrumentation_tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/test_options_parser.py
diff --git a/build/android/pylib/test_options_parser.py b/build/android/pylib/test_options_parser.py
index 3a621d36f5a8424ed3f65e37a64a7d1407896a63..b5e44db088b05ce68aa1fe2427e95588c7f7fe69 100644
--- a/build/android/pylib/test_options_parser.py
+++ b/build/android/pylib/test_options_parser.py
@@ -113,6 +113,12 @@ def AddInstrumentationOptions(option_parser):
dest='flakiness_dashboard_server',
help=('Address of the server that is hosting the '
'Chrome for Android flakiness dashboard.'))
+ option_parser.add_option('--buildbot-step-failure',
+ action='store_true',
+ help=('If present, will set the buildbot status '
+ 'as STEP_FAILURE, otherwise as STEP_WARNINGS '
+ 'when test(s) fail.'))
+
def ValidateInstrumentationOptions(option_parser, options, args):
"""Validate options/arguments and populate options with defaults."""
@@ -130,14 +136,18 @@ def ValidateInstrumentationOptions(option_parser, options, args):
elif options.python_only:
options.run_java_tests = False
- options.test_apk_path = os.path.join(_SDK_OUT_DIR,
- options.build_type,
- constants.SDK_BUILD_APKS_DIR,
- '%s.apk' % options.test_apk)
- options.test_apk_jar_path = os.path.join(_SDK_OUT_DIR,
- options.build_type,
- constants.SDK_BUILD_TEST_JAVALIB_DIR,
- '%s.jar' % options.test_apk)
+ if os.path.exists(options.test_apk):
+ # The APK is fully qualified, assume the JAR lives along side.
+ options.test_apk_path = options.test_apk
+ options.test_apk_jar_path = os.path.splitext(options.test_apk_path) + '.jar'
+ else:
+ options.test_apk_path = os.path.join(_SDK_OUT_DIR,
+ options.build_type,
+ constants.SDK_BUILD_APKS_DIR,
+ '%s.apk' % options.test_apk)
+ options.test_apk_jar_path = os.path.join(
+ _SDK_OUT_DIR, options.build_type, constants.SDK_BUILD_TEST_JAVALIB_DIR,
+ '%s.jar' % options.test_apk)
if options.annotation_str:
options.annotation = options.annotation_str.split()
elif options.test_filter:
« no previous file with comments | « build/android/pylib/buildbot_report.py ('k') | build/android/run_instrumentation_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698