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 41d47ca1c67f53d8dc6707fb9963d4f7982b8b1b..7cc13a20f8df5dd512a4e163587ff6ed5512f26e 100755 |
--- a/build/android/buildbot/bb_device_steps.py |
+++ b/build/android/buildbot/bb_device_steps.py |
@@ -157,7 +157,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: |
@@ -165,6 +165,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()) |
@@ -188,6 +189,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=True') |
Isaac (away)
2013/08/20 02:45:03
Can we change it to action='store_true' in this CL
Siva Chandra
2013/08/20 18:53:04
It is already setup with that action. Hence made t
|
RunCmd(['build/android/test_runner.py', 'instrumentation'] + args, |
flunk_on_failure=flunk_on_failure) |