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

Unified Diff: recipe_modules/presubmit/api.py

Issue 2045473002: depot_tools: expose paths to presubmit_support.py and upload_to_google_storage.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: presubmit Created 4 years, 6 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 | « recipe_modules/depot_tools/example.expected/win.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/presubmit/api.py
diff --git a/recipe_modules/presubmit/api.py b/recipe_modules/presubmit/api.py
index 1ecf12986821dc186c30fb0d40a05b07f6e0788e..31fe1d976a60fe91bf4c43d6695ddd6281672d1e 100644
--- a/recipe_modules/presubmit/api.py
+++ b/recipe_modules/presubmit/api.py
@@ -5,6 +5,10 @@
from recipe_engine import recipe_api
class PresubmitApi(recipe_api.RecipeApi):
+ @property
+ def presubmit_support_path(self):
+ return self.package_repo_resource('presubmit_support.py')
+
def __call__(self, *args, **kwargs):
"""Return a presubmit step."""
@@ -16,5 +20,4 @@ class PresubmitApi(recipe_api.RecipeApi):
kwargs['env']['PATH'], str(self._module.PACKAGE_REPO_ROOT)])
return self.m.python(
- name, self.package_repo_resource('presubmit_support.py'), list(args),
- **kwargs)
+ name, self.presubmit_support_path, list(args), **kwargs)
« no previous file with comments | « recipe_modules/depot_tools/example.expected/win.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698