| 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)
|
|
|