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

Unified Diff: scripts/slave/recipe_modules/step_history/api.py

Issue 187203005: Minor cleanup of some recipe framework code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Rietveld >_< Created 6 years, 10 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/recipe_modules/step/api.py ('k') | scripts/slave/recipe_test_api.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/step_history/api.py
diff --git a/scripts/slave/recipe_modules/step_history/api.py b/scripts/slave/recipe_modules/step_history/api.py
index 9875dc712bc3056c1e0b507489e90118e09831bd..788384a1ac61df31e99a131d78c1777bfe3c8e2e 100644
--- a/scripts/slave/recipe_modules/step_history/api.py
+++ b/scripts/slave/recipe_modules/step_history/api.py
@@ -18,6 +18,9 @@ class StepHistoryApi(recipe_api.RecipeApi, collections.Mapping):
def __init__(self, step_history, **kwargs):
super(StepHistoryApi, self).__init__(**kwargs)
+ # step_history is instantiated in annontated_run.py. Recipe engine is
+ # responsible for updating it.
+ assert isinstance(step_history, collections.OrderedDict)
self._step_history = step_history
def __getitem__(self, key):
« no previous file with comments | « scripts/slave/recipe_modules/step/api.py ('k') | scripts/slave/recipe_test_api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698