aboutsummaryrefslogtreecommitdiff
path: root/cros_utils
diff options
context:
space:
mode:
authorTing-Yuan Huang <laszio@google.com>2016-12-15 14:22:26 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-12-15 18:01:12 -0800
commite58198707a6524ad3f731c61c9d5ef140a342451 (patch)
tree7897deee2421aaef69033eeafb0ea66ceb8df193 /cros_utils
parent9c0b33bc875650e8f27709e66e43b42e09b6f6fe (diff)
downloadtoolchain-utils-e58198707a6524ad3f731c61c9d5ef140a342451.tar.gz
buildbot_test_toolchains: Use LATEST-master as control group
Rather than finding the official image with exact the same version as the trybot image, let's just use the latest one since trybot always get lastest or latest + 1. This also solves the problem that the official image specified may not exist. BUG=chromium:674652 TEST=Tested ToolchainComparator._GetVanillaImageName locally. Change-Id: I44fbceb99d8f6cf3187366c075c2a9522869b5a5 Reviewed-on: https://chrome-internal-review.googlesource.com/312516 Commit-Ready: Ting-Yuan Huang <laszio@google.com> Tested-by: Ting-Yuan Huang <laszio@google.com> Reviewed-by: Caroline Tice <cmtice@google.com>
Diffstat (limited to 'cros_utils')
-rw-r--r--cros_utils/buildbot_utils.py12
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."""