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

Unified Diff: recipe_engine/run.py

Issue 1421843006: Add simple depends_on API. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/recipes-py@master
Patch Set: Created 5 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 6949ee70212269c415831ca60fb64b10cbd630e9..52dfed429ec21f729778c0858620bb2116e09ca2 100644
--- a/recipe_engine/run.py
+++ b/recipe_engine/run.py
@@ -433,7 +433,7 @@ def run_steps(properties,
'TESTING_SLAVENAME' in os.environ)):
properties['use_mirror'] = False
- engine = RecipeEngine(stream, properties, test_data)
+ engine = RecipeEngine(stream, properties, test_data, universe)
# Create all API modules and top level RunSteps function. It doesn't launch
# any recipe code yet; RunSteps needs to be called.
@@ -750,11 +750,12 @@ class RecipeEngine(object):
* step - uses engine.create_step(...).
"""
- def __init__(self, stream, properties, test_data):
+ def __init__(self, stream, properties, test_data, universe):
self._stream = stream
self._properties = properties
self._test_data = test_data
self._step_history = collections.OrderedDict()
+ self._universe = universe
self._previous_step_annotation = None
self._previous_step_result = None
@@ -861,7 +862,6 @@ class RecipeEngine(object):
raise exc(step['name'], step_result)
-
def run(self, recipe_script, api):
"""Run a recipe represented by a recipe_script object.

Powered by Google App Engine
This is Rietveld 408576698