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

Unified Diff: scripts/slave/recipe_modules/chromium_tests/api.py

Issue 2234893002: ios: fix cwd for git diff (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.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 | scripts/slave/recipe_modules/ios/api.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/chromium_tests/api.py
diff --git a/scripts/slave/recipe_modules/chromium_tests/api.py b/scripts/slave/recipe_modules/chromium_tests/api.py
index 69884a3c73e42bae76e73e7c4a064e70def79cd2..d8134af777664f109a751d654f4774dd94b8e7cb 100644
--- a/scripts/slave/recipe_modules/chromium_tests/api.py
+++ b/scripts/slave/recipe_modules/chromium_tests/api.py
@@ -694,14 +694,15 @@ class ChromiumTestsApi(recipe_api.RecipeApi):
'TESTS FAILED; retries without patch disabled (%s)'
% deapply_patch_reason)
- def get_files_affected_by_patch(self, relative_to='src/'):
+ def get_files_affected_by_patch(self, relative_to='src/', cwd=None):
"""Returns list of POSIX paths of files affected by patch for "analyze".
Paths are relative to `relative_to` which for analyze should be 'src/'.
"""
patch_root = self.m.gclient.calculate_patch_root(
self.m.properties.get('patch_project'))
- cwd = self._working_dir.join(patch_root) if self._working_dir else None
+ if not cwd:
+ cwd = self._working_dir.join(patch_root) if self._working_dir else None
files = self.m.tryserver.get_files_affected_by_patch(patch_root, cwd=cwd)
for i, path in enumerate(files):
path = str(path)
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/ios/api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698