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

Unified Diff: recipes/recipe_modules/recipe_autoroller/api.py

Issue 2257123003: recipe_autoroller: always set cwd to workdir (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | recipes/recipes/recipe_autoroller.expected/basic.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipes/recipe_modules/recipe_autoroller/api.py
diff --git a/recipes/recipe_modules/recipe_autoroller/api.py b/recipes/recipe_modules/recipe_autoroller/api.py
index b89b86f29e693de3c305a6b12bedc0289154bf8e..e1d4ec8664bda6dd7414f4c68609430dc1582982 100644
--- a/recipes/recipe_modules/recipe_autoroller/api.py
+++ b/recipes/recipe_modules/recipe_autoroller/api.py
@@ -179,8 +179,9 @@ class RecipeAutorollerApi(recipe_api.RecipeApi):
# Check status of last known CL for this repo. Ensure there's always
# at most one roll CL in flight.
- repo_data, cl_status = self._get_pending_cl_status(
- project_data['repo_url'])
+ with self.m.step.context({'cwd': workdir}):
+ repo_data, cl_status = self._get_pending_cl_status(
+ project_data['repo_url'])
if repo_data:
# Allow trivial rolls in CQ to finish.
if repo_data['trivial'] and cl_status == 'commit':
« no previous file with comments | « no previous file | recipes/recipes/recipe_autoroller.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698