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

Unified Diff: recipe_engine/run.py

Issue 2512253002: Add name, package_repo_resource and resource support to recipe scripts. (Closed)
Patch Set: Created 4 years, 1 month 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: recipe_engine/run.py
diff --git a/recipe_engine/run.py b/recipe_engine/run.py
index 12ae6e33a21f7284488f1832f77dc7170ee26387..e61bc4b41d2ae7f36f38e84bb876ac60fe7332bf 100644
--- a/recipe_engine/run.py
+++ b/recipe_engine/run.py
@@ -251,9 +251,12 @@ def run_steps(properties, stream_engine, step_runner, universe_view,
recipe_script = universe_view.load_recipe(recipe, engine=engine)
s.write_line('Running recipe with %s' % (properties,))
- api = loader.create_recipe_api(recipe_script.LOADED_DEPS,
- engine,
- recipe_test_api.DisabledTestData())
+ api = loader.create_recipe_api(
+ universe_view.universe.package_deps.root_package,
+ recipe_script.LOADED_DEPS,
+ recipe_script.path,
+ engine,
+ recipe_test_api.DisabledTestData())
s.add_step_text('running recipe: "%s"' % recipe)
except (loader.LoaderError, ImportError, AssertionError) as e:

Powered by Google App Engine
This is Rietveld 408576698