aboutsummaryrefslogtreecommitdiff
path: root/crosperf/results_cache.py
diff options
context:
space:
mode:
authorcmtice <cmtice@google.com>2014-01-30 15:52:37 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-02-20 20:09:43 +0000
commit0cc4e7790afbd514675801a1ffb90517c147270f (patch)
tree15374d6431f100ad1487f1eb1746c89afdd7434a /crosperf/results_cache.py
parentfd0b178bef64de689ce86c3cc471daa219bf601f (diff)
downloadtoolchain-utils-0cc4e7790afbd514675801a1ffb90517c147270f.tar.gz
Add 'build' settings option and xbuddy image format.
This patch updates Crosperf to add the 'build' tag in the experiment file, and to allow that field to contain xbuddy syntax for using trybot and/or official builds in the test runs. It also adds a bit more checking to make sure we have everything necessary for running 'cros flash' before attempting to use it. BUG=None TEST=I have run this using an experiment file that compares a local image, a trybot image and an official image against each other. It all worked. Change-Id: Ia896799061508fb5718a3201b1599d8622de0b3f Reviewed-on: https://chrome-internal-review.googlesource.com/154097 Reviewed-by: Yunlian Jiang <yunlian@google.com> Commit-Queue: Caroline Tice <cmtice@google.com> Tested-by: Caroline Tice <cmtice@google.com>
Diffstat (limited to 'crosperf/results_cache.py')
-rw-r--r--crosperf/results_cache.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/crosperf/results_cache.py b/crosperf/results_cache.py
index 4c1cf4c0..fb66e5c4 100644
--- a/crosperf/results_cache.py
+++ b/crosperf/results_cache.py
@@ -539,6 +539,10 @@ class ResultsCache(object):
machine_checksum = self.machine_manager.machine_checksum[self.label.name]
if read and CacheConditions.CHECKSUMS_MATCH not in self.cache_conditions:
checksum = "*"
+ elif self.label.image_type == "trybot":
+ checksum = hashlib.md5(self.label.chromeos_image).hexdigest()
+ elif self.label.image_type == "official":
+ checksum = "*"
else:
checksum = ImageChecksummer().Checksum(self.label)