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

Unified Diff: tools/bots/bot_utils.py

Issue 261283002: Add annotated steps script for validating that the version on dev and stable is always increasing w… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 | tools/bots/version_checker.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/bot_utils.py
===================================================================
--- tools/bots/bot_utils.py (revision 35727)
+++ tools/bots/bot_utils.py (working copy)
@@ -264,8 +264,9 @@
else:
gsutil_command = [sys.executable, GSUtil.GSUTIL_PATH]
- run(gsutil_command + gsutil_args, env=env,
- shell=(GSUtil.GSUTIL_IS_SHELL_SCRIPT and sys.platform == 'win32'))
+ return run(gsutil_command + gsutil_args, env=env,
+ 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://')
@@ -278,6 +279,13 @@
args += [local_path, remote_path]
self.execute(args)
+ def cat(self, remote_path):
+ assert remote_path.startswith('gs://')
+
+ args = ['cat', remote_path]
+ (stdout, _, _) = self.execute(args)
+ return stdout
+
def setGroupReadACL(self, remote_path, group):
args = ['acl', 'ch', '-g', '%s:R' % group, remote_path]
self.execute(args)
« no previous file with comments | « no previous file | tools/bots/version_checker.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698