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

Unified Diff: scripts/slave/annotated_run.py

Issue 1111413005: Some changes to allow recipes and modules to live noncentrally (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Review comments Created 5 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
« no previous file with comments | « scripts/slave/README.recipes.md ('k') | scripts/slave/recipe_api.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/annotated_run.py
diff --git a/scripts/slave/annotated_run.py b/scripts/slave/annotated_run.py
index b030c8be12d214e9af9a9bd7aed7b96f4c1dfa13..35873dccfca726b7aae33ef975740b44593fc061 100755
--- a/scripts/slave/annotated_run.py
+++ b/scripts/slave/annotated_run.py
@@ -314,8 +314,10 @@ def main(argv=None):
opts, _ = get_args(argv)
stream = annotator.StructuredAnnotationStream()
+ universe = recipe_loader.RecipeUniverse()
- ret = run_steps(stream, opts.build_properties, opts.factory_properties)
+ ret = run_steps(stream, opts.build_properties, opts.factory_properties,
+ universe)
return ret.status_code
@@ -358,7 +360,7 @@ def get_recipe_properties(factory_properties, build_properties):
def run_steps(stream, build_properties, factory_properties,
- test_data=recipe_test_api.DisabledTestData()):
+ universe, test_data=recipe_test_api.DisabledTestData()):
"""Returns a tuple of (status_code, steps_ran).
Only one of these values will be set at a time. This is mainly to support the
@@ -423,9 +425,9 @@ def run_steps(stream, build_properties, factory_properties,
s.step_log_end('run_recipe')
try:
- recipe_module = recipe_loader.load_recipe(recipe)
+ recipe_module = universe.load_recipe(recipe)
stream.emit('Running recipe with %s' % (properties,))
- api = recipe_loader.create_recipe_api(recipe_module.DEPS,
+ api = recipe_loader.create_recipe_api(recipe_module.LOADED_DEPS,
engine,
test_data)
steps = recipe_module.GenSteps
« no previous file with comments | « scripts/slave/README.recipes.md ('k') | scripts/slave/recipe_api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698