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

Unified Diff: tools/bots/bot_utils.py

Issue 1315343002: Remove custom .boto file path in tools. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/bot_utils.py
diff --git a/tools/bots/bot_utils.py b/tools/bots/bot_utils.py
index 8262462224b32e2a6dce2315eabc0d3f703f27b4..e5f5de23ccca430c57d86e6c16bc2cb992f23e7f 100644
--- a/tools/bots/bot_utils.py
+++ b/tools/bots/bot_utils.py
@@ -263,25 +263,12 @@ class GSUtil(object):
def execute(self, gsutil_args):
self._layzCalculateGSUtilPath()
- env = dict(os.environ)
- # If we're on the buildbot, we use a specific boto file.
- user_name = os.environ.get(
- 'USERNAME' if sys.platform == 'win32' else 'USER', '')
- if user_name == 'chrome-bot':
- boto_config = {
- 'Linux': '/mnt/data/b/build/site_config/.boto',
- 'Darwin': '/Volumes/data/b/build/site_config/.boto',
- 'Windows': r'e:\b\build\site_config\.boto',
- }[platform.system()]
- env['AWS_CREDENTIAL_FILE'] = boto_config
- env['BOTO_CONFIG'] = boto_config
-
if GSUtil.GSUTIL_IS_SHELL_SCRIPT:
gsutil_command = [GSUtil.GSUTIL_PATH]
else:
gsutil_command = [sys.executable, GSUtil.GSUTIL_PATH]
- return run(gsutil_command + gsutil_args, env=env,
+ return run(gsutil_command + gsutil_args,
shell=(GSUtil.GSUTIL_IS_SHELL_SCRIPT and
sys.platform == 'win32'))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698