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

Unified Diff: recipe_engine/simulation_test.py

Issue 2415793003: Setup basic Runtime with properties and platform.
Patch Set: Split out, more immutables, better utilization. Created 4 years, 2 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: recipe_engine/simulation_test.py
diff --git a/recipe_engine/simulation_test.py b/recipe_engine/simulation_test.py
index b397a7b83a294e6928ea237461bdd3736cf3b922..a4d087044b0a36d67969a8ee842a872c8fcf0a41 100644
--- a/recipe_engine/simulation_test.py
+++ b/recipe_engine/simulation_test.py
@@ -80,16 +80,17 @@ def RunRecipe(test_data):
config_types.ResetTostringFns()
+ rt = run.Runtime(test_data.properties)
annotator = SimulationAnnotatorStreamEngine()
with stream.StreamEngineInvariants.wrap(annotator) as stream_engine:
step_runner = step_runner.SimulationStepRunner(stream_engine, test_data,
annotator)
- engine = run.RecipeEngine(step_runner, test_data.properties, _UNIVERSE)
+ engine = run.RecipeEngine(step_runner, rt, _UNIVERSE)
recipe_script = _UNIVERSE.load_recipe(test_data.properties['recipe'],
engine=engine)
api = loader.create_recipe_api(recipe_script.LOADED_DEPS, engine, test_data)
- result = engine.run(recipe_script, api, test_data.properties)
+ result = engine.run(recipe_script, api)
# Don't include tracebacks in expectations because they are too sensitive to
# change.
« recipe_engine/recipe_api.py ('K') | « recipe_engine/run.py ('k') | recipe_engine/types.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698