| 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)
|
|
|