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

Unified Diff: dart/tools/bots/bot_utils.py

Issue 23708046: We can use subprocess.Popen(shell=True) only on windows (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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: dart/tools/bots/bot_utils.py
diff --git a/dart/tools/bots/bot_utils.py b/dart/tools/bots/bot_utils.py
index fb29a216ebe3e376fecc71e64deb4f08ab5c8c9c..c506014f611258430fc4fa8c2555afc081525856 100644
--- a/dart/tools/bots/bot_utils.py
+++ b/dart/tools/bots/bot_utils.py
@@ -186,7 +186,7 @@ class GSUtil(object):
gsutil_command = [sys.executable, GSUtil.GSUTIL_PATH]
run(gsutil_command + gsutil_args, env=env,
- shell=GSUtil.GSUTIL_IS_SHELL_SCRIPT)
+ shell=(GSUtil.GSUTIL_IS_SHELL_SCRIPT and sys.platform == 'win32'))
def upload(self, local_path, remote_path, recursive=False, public=False):
assert remote_path.startswith('gs://')
« 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