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

Unified Diff: scripts/slave/recipes/chromium.py

Issue 1177593002: Add swarming support for MB (and the GN bots) in the chromium recipes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: updated baselines Created 5 years, 6 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
Index: scripts/slave/recipes/chromium.py
diff --git a/scripts/slave/recipes/chromium.py b/scripts/slave/recipes/chromium.py
index 06c824e1d9f9a62e1493676d5b4d8e7a90b4fedd..b7350fb696de7f1011c0235c7e43488fe6a685ac 100644
--- a/scripts/slave/recipes/chromium.py
+++ b/scripts/slave/recipes/chromium.py
@@ -32,11 +32,18 @@ def GenSteps(api):
api.chromium_tests.configure_build(mastername, buildername)
update_step, master_dict, test_spec = \
api.chromium_tests.prepare_checkout(mastername, buildername)
- api.chromium_tests.compile(mastername, buildername, update_step, master_dict,
- test_spec)
+
tests = api.chromium_tests.tests_for_builder(
mastername, buildername, update_step, master_dict)
+ if api.chromium.c.project_generator.tool == 'mb':
+ swarming_targets = [t.name for t in tests if t.uses_swarming]
+ api.m.chromium.run_mb(mastername, buildername,
+ swarming_targets=swarming_targets)
+
+ api.chromium_tests.compile(mastername, buildername, update_step, master_dict,
+ test_spec)
+
if not tests:
return

Powered by Google App Engine
This is Rietveld 408576698