aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/recipe_modules/core
diff options
context:
space:
mode:
authorGravatar Eric Boren <borenet@google.com>2017-02-17 14:09:44 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-02-17 19:55:12 +0000
commit310f4d02c1e2d01181c1db18acf05f2846f94cd4 (patch)
tree2e2a04af053bf1a5aed874ede98258ab7ceb6e9a /infra/bots/recipe_modules/core
parent25272096bdc0ceed8de49aa9310feb7cc3ea3744 (diff)
Roll Recipe DEPS
BUG=skia: Change-Id: I3e32207e5809e126d53ee8ec2158eb855c1a26d2 Reviewed-on: https://skia-review.googlesource.com/8671 Commit-Queue: Eric Boren <borenet@google.com> Reviewed-by: Ravi Mistry <rmistry@google.com>
Diffstat (limited to 'infra/bots/recipe_modules/core')
-rw-r--r--infra/bots/recipe_modules/core/api.py41
1 files changed, 19 insertions, 22 deletions
diff --git a/infra/bots/recipe_modules/core/api.py b/infra/bots/recipe_modules/core/api.py
index eb6dc9404f..1c4554d8d5 100644
--- a/infra/bots/recipe_modules/core/api.py
+++ b/infra/bots/recipe_modules/core/api.py
@@ -41,22 +41,19 @@ class SkiaApi(recipe_api.RecipeApi):
git = 'git.bat'
else:
git = 'git'
- self.m.step('git remote set-url',
- cmd=[git, 'remote', 'set-url', 'origin', repo.url],
- cwd=repo_path,
- infra_step=True)
- self.m.step('git fetch',
- cmd=[git, 'fetch'],
- cwd=repo_path,
- infra_step=True)
- self.m.step('git reset',
- cmd=[git, 'reset', '--hard', repo.revision],
- cwd=repo_path,
- infra_step=True)
- self.m.step('git clean',
- cmd=[git, 'clean', '-d', '-f'],
- cwd=repo_path,
- infra_step=True)
+ with self.m.step.context({'cwd': repo_path}):
+ self.m.step('git remote set-url',
+ cmd=[git, 'remote', 'set-url', 'origin', repo.url],
+ infra_step=True)
+ self.m.step('git fetch',
+ cmd=[git, 'fetch'],
+ infra_step=True)
+ self.m.step('git reset',
+ cmd=[git, 'reset', '--hard', repo.revision],
+ infra_step=True)
+ self.m.step('git clean',
+ cmd=[git, 'clean', '-d', '-f'],
+ infra_step=True)
def checkout_steps(self):
"""Run the steps to obtain a checkout of Skia."""
@@ -158,14 +155,14 @@ class SkiaApi(recipe_api.RecipeApi):
)
self.m.gclient.c = gclient_cfg
- update_step = self.m.bot_update.ensure_checkout(
- cwd=self.m.vars.checkout_root,
- patch_root=patch_root,
- **checkout_kwargs)
+ with self.m.step.context({'cwd': self.m.vars.checkout_root}):
+ update_step = self.m.bot_update.ensure_checkout(
+ patch_root=patch_root,
+ **checkout_kwargs)
self.m.vars.got_revision = (
update_step.presentation.properties['got_revision'])
if self.m.vars.need_chromium_checkout:
- self.m.gclient.runhooks(cwd=self.m.vars.checkout_root,
- env=self.m.vars.gclient_env)
+ with self.m.step.context({'cwd': self.m.vars.checkout_root}):
+ self.m.gclient.runhooks(env=self.m.vars.gclient_env)