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

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

Issue 15270004: Add step generator protocol, remove annotated_checkout, remove script. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Checkout blobs do not need to be generators Created 7 years, 7 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/toolkit.py
diff --git a/scripts/slave/recipes/toolkit.py b/scripts/slave/recipes/toolkit.py
index 467d4f89e4dcf7c8e3a16259750343376700e986..b9025501f62d2aa4a88edd0947775aaa53fa1572 100644
--- a/scripts/slave/recipes/toolkit.py
+++ b/scripts/slave/recipes/toolkit.py
@@ -2,12 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-def GetFactoryProperties(api, _factory_properties, build_properties):
- return {
- 'checkout': 'git',
- 'git_spec': {
- 'url': build_properties['repository'] + '.git',
- 'recursive': True,
- },
- 'script': api.checkout_path('buildbot', 'gen_steps.py')
- }
+def GetSteps(api, _factory_properties, build_properties):
+ steps = api.Steps(build_properties)
+ return (
+ steps.git_checkout(build_properties['repository'] + '.git', recursive=True),
+ steps.generator_script(api.checkout_path('buildbot', 'gen_steps.py'))
+ )

Powered by Google App Engine
This is Rietveld 408576698