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

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

Issue 660023002: [Android] Test runner for python unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: + copyright header Created 6 years, 2 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') | build/android/python_test_runner.py » ('J')
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 c0f9fe7842b4926b5c517e2e9ed3bafb08330307..ffe2302f786ce1963d460c9d75eb9dbd20eb5ce8 100755
--- a/build/android/buildbot/bb_device_steps.py
+++ b/build/android/buildbot/bb_device_steps.py
@@ -77,7 +77,7 @@ INSTRUMENTATION_TESTS = dict((suite.name, suite) for suite in [
VALID_TESTS = set(['chromedriver', 'chrome_proxy', 'gpu', 'mojo', 'sync',
'telemetry_perf_unittests', 'ui', 'unit', 'webkit',
- 'webkit_layout'])
+ 'webkit_layout', 'python_unittests'])
RunCmd = bb_utils.RunCmd
@@ -531,12 +531,18 @@ def RunGPUTests(options):
EscapeBuilderName(builder_name)])
+def RunPythonUnitTests(_options):
+ bb_annotations.PrintNamedStep('python_unittests')
+ RunCmd(['build/android/python_test_runner.py'])
+
+
def GetTestStepCmds():
return [
('chromedriver', RunChromeDriverTests),
('chrome_proxy', RunChromeProxyTests),
('gpu', RunGPUTests),
('mojo', RunMojoTests),
+ ('python_unittests', RunPythonUnitTests),
klundberg 2014/10/16 17:50:15 Seems a little weird to run all Python unit tests
jbudorick 2014/10/16 17:55:07 That's reasonable. How would you suggest grouping
klundberg 2014/10/16 18:09:19 Not sure exactly what tests we have but something
('sync', RunChromeSyncShellTests),
('telemetry_perf_unittests', RunTelemetryPerfUnitTests),
('ui', RunInstrumentationTests),
« no previous file with comments | « no previous file | build/android/buildbot/bb_run_bot.py » ('j') | build/android/python_test_runner.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698