diff options
author | Eric Boren <borenet@google.com> | 2017-02-21 07:22:20 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-21 14:01:36 +0000 |
commit | e6b26add4da59a339b0cba10087095d58bd2db6b (patch) | |
tree | deaee426dffc45a36fb5a81e01aa3bdce1ca9177 /infra/bots/recipe_modules/core/api.py | |
parent | 4a2ab86d7618c4b5b31c161322ddfb4f18ab4f81 (diff) |
Roll recipe DEPS
Attempt 2. Lots of fixes due to upstream breaks.
BUG=skia:
Change-Id: Ie05b2da1790fbcce5c45ef09c4c832e09de6b5c5
Reviewed-on: https://skia-review.googlesource.com/8762
Reviewed-by: Eric Boren <borenet@google.com>
Commit-Queue: Eric Boren <borenet@google.com>
Diffstat (limited to 'infra/bots/recipe_modules/core/api.py')
-rw-r--r-- | infra/bots/recipe_modules/core/api.py | 41 |
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) |