aboutsummaryrefslogtreecommitdiff
path: root/crosperf
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2016-04-15 14:27:11 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-04-15 22:53:01 +0000
commit74d85cf83860538fcf57c413cf8ae416baa0ef51 (patch)
treeea2430a476e4b35335f9d17062fcb075c1867148 /crosperf
parenteddb06396dc17fcec418c3aadc234f737b63c876 (diff)
downloadtoolchain-utils-74d85cf83860538fcf57c413cf8ae416baa0ef51.tar.gz
Fix error with json reports with multi-valued results.
BUG=None TEST=Tested in in role account. Change-Id: I502dda87f9a3647e8bea61a54f587813eb18b755 Reviewed-on: https://chrome-internal-review.googlesource.com/255739 Commit-Ready: Caroline Tice <cmtice@google.com> Tested-by: Caroline Tice <cmtice@google.com> Reviewed-by: Yunlian Jiang <yunlian@google.com>
Diffstat (limited to 'crosperf')
-rw-r--r--crosperf/results_report.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/crosperf/results_report.py b/crosperf/results_report.py
index 2a245b3b..db211f1c 100644
--- a/crosperf/results_report.py
+++ b/crosperf/results_report.py
@@ -623,7 +623,10 @@ class JSONResultsReport(ResultsReport):
v = v[0]
if v != 'PASS':
if k.find('machine') == -1:
- detail_results[k] = float(v)
+ if type(v) != list:
+ detail_results[k] = float(v)
+ else:
+ detail_results[k] = [float(d) for d in v]
else:
json_results[k] = v
if 'machine_checksum' not in json_results.keys():