diff options
Diffstat (limited to 'cros_utils/buildbot_utils.py')
-rw-r--r-- | cros_utils/buildbot_utils.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/cros_utils/buildbot_utils.py b/cros_utils/buildbot_utils.py index fa97bd15..e9dbf8cb 100644 --- a/cros_utils/buildbot_utils.py +++ b/cros_utils/buildbot_utils.py @@ -1,4 +1,4 @@ -# Copyright 2014 Google Inc. All Rights Reserved. +# Copyright 2016 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Utilities for launching and accessing ChromeOS buildbots.""" @@ -346,6 +346,16 @@ def GetTrybotImage(chromeos_root, return build_id, trybot_image +def GetGSContent(chromeos_root, path): + """gsutil cat path""" + + ce = command_executer.GetCommandExecuter() + command = ('gsutil cat gs://chromeos-image-archive/%s' % path) + _, out, _ = ce.ChrootRunCommandWOutput( + chromeos_root, command, print_to_console=False) + return out + + def DoesImageExist(chromeos_root, build): """Check if the image for the given build exists.""" |