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

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

Issue 408873003: Add chrome_proxy tests to Android tester. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | build/android/buildbot/bb_run_bot.py » ('j') | 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 1d0ba35fff139a91054d01bf46ae16ff7c710ec9..05160524b860f12eecd9939a109e4727326a097f 100755
--- a/build/android/buildbot/bb_device_steps.py
+++ b/build/android/buildbot/bb_device_steps.py
@@ -74,9 +74,9 @@ INSTRUMENTATION_TESTS = dict((suite.name, suite) for suite in [
'webview:android_webview/test/data/device_files'),
])
-VALID_TESTS = set(['chromedriver', 'gpu', 'mojo', 'telemetry_perf_unittests',
- 'ui', 'unit', 'webkit', 'webkit_layout', 'webrtc_chromium',
- 'webrtc_native'])
+VALID_TESTS = set(['chromedriver', 'chrome_proxy', 'gpu', 'mojo',
+ 'telemetry_perf_unittests', 'ui', 'unit', 'webkit',
+ 'webkit_layout', 'webrtc_chromium', 'webrtc_native'])
RunCmd = bb_utils.RunCmd
@@ -140,6 +140,19 @@ def RunChromeDriverTests(options):
'--revision=%s' % _GetRevision(options),
'--update-log'])
+def RunChromeProxyTests(options):
+ """Run the chrome_proxy tests.
+
+ Args:
+ options: options object.
+ """
+ InstallApk(options, INSTRUMENTATION_TESTS['ChromeShell'], False)
+ args = ['--browser', 'android-chrome-shell']
+ devices = android_commands.GetAttachedDevices()
+ if devices:
+ args = args + ['--device', devices[0]]
+ bb_annotations.PrintNamedStep('chrome_proxy')
+ RunCmd(['tools/chrome_proxy/run_tests'] + args)
def RunTelemetryPerfUnitTests(options):
"""Runs the telemetry perf unit tests.
@@ -496,6 +509,7 @@ def RunGPUTests(options):
def GetTestStepCmds():
return [
('chromedriver', RunChromeDriverTests),
+ ('chrome_proxy', RunChromeProxyTests),
('gpu', RunGPUTests),
('mojo', RunMojoTests),
('telemetry_perf_unittests', RunTelemetryPerfUnitTests),
« no previous file with comments | « no previous file | build/android/buildbot/bb_run_bot.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698