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

Unified Diff: scripts/slave/recipes/run_presubmit.py

Issue 1919193002: build: roll infra_paths changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: merge Created 4 years, 8 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
Index: scripts/slave/recipes/run_presubmit.py
diff --git a/scripts/slave/recipes/run_presubmit.py b/scripts/slave/recipes/run_presubmit.py
index ee92b65d9420c959fe2951029dce3c1d6d4b30a7..9aefb0548c3d9da0c537b9af992b280fecb67707 100644
--- a/scripts/slave/recipes/run_presubmit.py
+++ b/scripts/slave/recipes/run_presubmit.py
@@ -6,6 +6,7 @@ DEPS = [
'depot_tools/bot_update',
'depot_tools/gclient',
'depot_tools/git',
+ 'depot_tools/infra_paths',
'depot_tools/presubmit',
'recipe_engine/json',
'recipe_engine/path',
@@ -40,7 +41,7 @@ def _RunStepsInternal(api):
upstream = bot_update_step.json.output['properties'].get(
'%s_git' % got_revision_property) or ''
- abs_root = api.path['slave_build'].join(relative_root)
+ abs_root = api.infra_paths['slave_build'].join(relative_root)
# TODO(hinoka): Extract email/name from issue?
api.git('-c', 'user.email=commit-bot@chromium.org',
'-c', 'user.name=The Commit Bot',
@@ -61,10 +62,10 @@ def _RunStepsInternal(api):
if codereview_auth:
presubmit_args.extend([
'--rietveld_email_file',
- api.path['build'].join('site_config', '.rietveld_client_email')])
+ api.infra_paths['build'].join('site_config', '.rietveld_client_email')])
presubmit_args.extend([
'--rietveld_private_key_file',
- api.path['build'].join('site_config', '.rietveld_secret_key')])
+ api.infra_paths['build'].join('site_config', '.rietveld_secret_key')])
else:
presubmit_args.extend(['--rietveld_email', '']) # activate anonymous mode
elif patch_storage == 'gerrit':

Powered by Google App Engine
This is Rietveld 408576698