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

Unified Diff: recipe_engine/simulation_test.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/simulation_test.py
diff --git a/recipe_engine/simulation_test.py b/recipe_engine/simulation_test.py
index 9da722c51fd18f5b3ef9248b72a521a70538362b..d031acb75e9d0ef4a4216b401b3e6faedfe03365 100644
--- a/recipe_engine/simulation_test.py
+++ b/recipe_engine/simulation_test.py
@@ -114,7 +114,9 @@ def RunRecipe(recipe_name, test_name):
step_runner, props, _UNIVERSE, engine_flags=_ENGINE_FLAGS)
recipe_script = _UNIVERSE.load_recipe(recipe_name, engine=engine)
- api = loader.create_recipe_api(recipe_script.LOADED_DEPS, engine, test_data)
+ api = loader.create_recipe_api(
+ _UNIVERSE.universe.package_deps.root_package, recipe_script.LOADED_DEPS,
+ recipe_script.path, engine, test_data)
result = engine.run(recipe_script, api, test_data.properties)
raw_expectations = step_runner.steps_ran.copy()

Powered by Google App Engine
This is Rietveld 408576698