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

Unified Diff: recipe_modules/step/api.py

Issue 2106153002: Make it possible to use 'cwd' in api.step.context (Closed) Base URL: https://github.com/luci/recipes-py.git@master
Patch Set: simpler Created 4 years, 6 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 | « recipe_engine/recipe_api.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/step/api.py
diff --git a/recipe_modules/step/api.py b/recipe_modules/step/api.py
index 3c8e5689d2f43c33a60ef86a72106514cf8dffea..7f6f2f59bc1b90529d8b558d2d3084577b0c6605 100644
--- a/recipe_modules/step/api.py
+++ b/recipe_modules/step/api.py
@@ -137,6 +137,8 @@ class StepApi(recipe_api.RecipeApiPlain):
# Obtain information from composite step parent.
compositor = recipe_api._STEP_CONTEXT
name = compositor.get_with_context('name', name)
+ if 'cwd' not in kwargs:
+ kwargs['cwd'] = compositor.get('cwd')
kwargs['env'] = compositor.get_with_context('env', kwargs.get('env', {}))
kwargs['step_nest_level'] = compositor.get_with_context('nest_level', 0)
« no previous file with comments | « recipe_engine/recipe_api.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698