aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/recipe_modules/vars
diff options
context:
space:
mode:
authorGravatar Robert Iannucci <iannucci@google.com>2017-05-12 19:09:38 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-15 13:46:22 +0000
commit297a7efd54495a06a7473eb8d99b211fd511766c (patch)
tree44b09641b37f75abe50d849a1082b6d9b6c6a459 /infra/bots/recipe_modules/vars
parent9018952290a468886c819405c6d9495b4aa5d7d4 (diff)
[skia] convert recipes and module to new context module
This is a syntax-only change to convert to the new (documented) context module. R=borenet@google.com Bug: skia: Change-Id: Id907c309d3cf38b85a46f6d8d7ce90ed58ba026f Reviewed-on: https://skia-review.googlesource.com/16840 Commit-Queue: Eric Boren <borenet@google.com> Reviewed-by: Eric Boren <borenet@google.com>
Diffstat (limited to 'infra/bots/recipe_modules/vars')
-rw-r--r--infra/bots/recipe_modules/vars/__init__.py1
-rw-r--r--infra/bots/recipe_modules/vars/api.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/infra/bots/recipe_modules/vars/__init__.py b/infra/bots/recipe_modules/vars/__init__.py
index e0e951379f..98c1d3ec2f 100644
--- a/infra/bots/recipe_modules/vars/__init__.py
+++ b/infra/bots/recipe_modules/vars/__init__.py
@@ -5,6 +5,7 @@
DEPS = [
'builder_name_schema',
'depot_tools/bot_update',
+ 'recipe_engine/context',
'recipe_engine/json',
'recipe_engine/path',
'recipe_engine/properties',
diff --git a/infra/bots/recipe_modules/vars/api.py b/infra/bots/recipe_modules/vars/api.py
index dbafc90ac3..e48de5bee6 100644
--- a/infra/bots/recipe_modules/vars/api.py
+++ b/infra/bots/recipe_modules/vars/api.py
@@ -28,7 +28,7 @@ class SkiaVarsApi(recipe_api.RecipeApi):
self.slave_dir = self.m.path['start_dir']
self.checkout_root = self.slave_dir
- self.default_env = self.m.step.get_from_context('env', {})
+ self.default_env = self.m.context.env
self.default_env['CHROME_HEADLESS'] = '1'
self.default_env['PATH'] = self.m.path.pathsep.join([
self.default_env.get('PATH', '%(PATH)s'),