aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoj Gupta <manojgupta@google.com>2016-11-22 01:35:09 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-11-22 11:43:26 -0800
commit9eabe97c2dfaf0c472e3bf43849817c668b0b70a (patch)
tree9e2a9508827eaf4694bc056335902fb7c8575327
parentc145de0147859ddc9f7b82c451c2dda36a0433d2 (diff)
downloadtoolchain-utils-9eabe97c2dfaf0c472e3bf43849817c668b0b70a.tar.gz
Fix crosperf generating duplicate key entries.
Fixes crosperf when reading data from cache. Fix string find check for json file. BUG: chromium:658875 TEST:crosperf unit tests Change-Id: I34529102c29ed88efd848beb0363066f3b6e50f0 Reviewed-on: https://chrome-internal-review.googlesource.com/305910 Commit-Ready: Manoj Gupta <manojgupta@google.com> Tested-by: Manoj Gupta <manojgupta@google.com> Reviewed-by: Caroline Tice <cmtice@google.com>
-rw-r--r--crosperf/results_cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/crosperf/results_cache.py b/crosperf/results_cache.py
index 33e16838..b8c31c8f 100644
--- a/crosperf/results_cache.py
+++ b/crosperf/results_cache.py
@@ -343,7 +343,7 @@ class Result(object):
# cache hit or miss. It should process results agnostic of the cache hit
# state.
if self.results_file and self.results_file[0].find(
- 'results_chart.json') != -1:
+ 'results-chart.json') != -1:
self.keyvals = self.ProcessJsonResults()
else:
if not use_cache: