aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/recipe_modules/env/example.py
diff options
context:
space:
mode:
Diffstat (limited to 'infra/bots/recipe_modules/env/example.py')
-rw-r--r--infra/bots/recipe_modules/env/example.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/infra/bots/recipe_modules/env/example.py b/infra/bots/recipe_modules/env/example.py
index a22899b576..d53ab57973 100644
--- a/infra/bots/recipe_modules/env/example.py
+++ b/infra/bots/recipe_modules/env/example.py
@@ -5,6 +5,7 @@
DEPS = [
'env',
+ 'recipe_engine/context',
'recipe_engine/step',
]
@@ -15,7 +16,7 @@ def RunSteps(api):
api.step('2', cmd=['echo', 'hi'])
path = 'mypath:%(PATH)s'
- with api.step.context({'env': {'PATH': path}}):
+ with api.context(env={'PATH': path}):
api.step('3', cmd=['echo', 'hi'])
with api.env({'PATH': '%(PATH)s:otherpath'}):
api.step('4', cmd=['echo', 'hi'])