aboutsummaryrefslogtreecommitdiff
path: root/crosperf/results_cache.py
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2015-09-14 16:30:37 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-09-15 12:21:37 -0700
commit31fedb0322eea850ed4ee45cb008c5b7ca5498b0 (patch)
tree5abf3c087c2787abbc57d258524c1d202f2b368e /crosperf/results_cache.py
parent43494297a1745c084d8a2f3beb52ff1c70a2007c (diff)
downloadtoolchain-utils-31fedb0322eea850ed4ee45cb008c5b7ca5498b0.tar.gz
Get Chrome version and store in cache & json files.
This updates crosperf to query the DUT for the version of Chrome running on it, and to store the Chrome version both in the json reports and in the human-readable cache keys file. BUG=None TEST=None Change-Id: Ie8215528b8119f95306cad694e6898cc4810730e Reviewed-on: https://chrome-internal-review.googlesource.com/230537 Commit-Ready: Caroline Tice <cmtice@google.com> Tested-by: Caroline Tice <cmtice@google.com> Reviewed-by: Han Shen <shenhan@google.com>
Diffstat (limited to 'crosperf/results_cache.py')
-rw-r--r--crosperf/results_cache.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/crosperf/results_cache.py b/crosperf/results_cache.py
index b42ec78f..8871c10c 100644
--- a/crosperf/results_cache.py
+++ b/crosperf/results_cache.py
@@ -332,6 +332,8 @@ class Result(object):
pickle.dump(self.retval, f)
with open(os.path.join(temp_dir, CACHE_KEYS_FILE), "w") as f:
+ f.write("%s\n" % self.label.name)
+ f.write("%s\n" % self.label.chrome_version)
f.write("%s\n" % self.machine.checksum_string)
for k in key_list:
f.write(k)