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

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

Issue 20073002: [Android Buildbot] Add option to run only host driven Python tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change to add option to run only python tests Created 7 years, 5 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 45187d539ebdb348edcc049e4bf0a3a484f3eb09..6234fd7fd5a6a7575b9c4fb5cb66083f26b84bad 100755
--- a/build/android/buildbot/bb_device_steps.py
+++ b/build/android/buildbot/bb_device_steps.py
@@ -156,12 +156,15 @@ def InstallApk(options, test, print_step=False):
RunCmd(['build/android/adb_install_apk.py'] + args, halt_on_failure=True)
-def RunInstrumentationSuite(options, test, flunk_on_failure=True):
+def RunInstrumentationSuite(options, test, flunk_on_failure=True,
+ python_only=False):
"""Manages an invocation of test_runner.py for instrumentation tests.
Args:
options: options object
test: An I_TEST namedtuple
+ flunk_on_failure: Flunk the step if tests fail.
+ Python: Run only host driven Python tests.
"""
bb_annotations.PrintNamedStep('%s_instrumentation_tests' % test.name.lower())
@@ -183,6 +186,8 @@ def RunInstrumentationSuite(options, test, flunk_on_failure=True):
args.extend(['-E', test.exclude_annotation])
if test.extra_flags:
args.extend(test.extra_flags)
+ if python_only:
+ args.append('-p')
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