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

Unified Diff: build/android/buildbot/bb_device_steps.py

Issue 20545002: [Android] Add 'official_build' option for running an instrumentation suite. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Consise cmd line arg Created 7 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/buildbot/bb_device_steps.py
diff --git a/build/android/buildbot/bb_device_steps.py b/build/android/buildbot/bb_device_steps.py
index 260ec76086b7bbbcc87a69b220167861e72fc8ad..44e1440e68a13520cda3d263a33dd8f76cb9e835 100755
--- a/build/android/buildbot/bb_device_steps.py
+++ b/build/android/buildbot/bb_device_steps.py
@@ -144,7 +144,7 @@ def InstallApk(options, test, print_step=False):
def RunInstrumentationSuite(options, test, flunk_on_failure=True,
- python_only=False):
+ python_only=False, official_build=False):
"""Manages an invocation of test_runner.py for instrumentation tests.
Args:
@@ -152,6 +152,7 @@ def RunInstrumentationSuite(options, test, flunk_on_failure=True,
test: An I_TEST namedtuple
flunk_on_failure: Flunk the step if tests fail.
Python: Run only host driven Python tests.
+ official_build: Run official-build tests.
"""
bb_annotations.PrintNamedStep('%s_instrumentation_tests' % test.name.lower())
@@ -175,6 +176,10 @@ def RunInstrumentationSuite(options, test, flunk_on_failure=True,
args.extend(test.extra_flags)
if python_only:
args.append('-p')
+ if official_build:
+ # The option needs to be assigned 'True' as it does not have an action
+ # associated with it.
+ args.append('--official-build')
RunCmd(['build/android/test_runner.py', 'instrumentation'] + args,
flunk_on_failure=flunk_on_failure)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698