From 74d85cf83860538fcf57c413cf8ae416baa0ef51 Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Fri, 15 Apr 2016 14:27:11 -0700 Subject: 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 Tested-by: Caroline Tice Reviewed-by: Yunlian Jiang --- crosperf/results_report.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crosperf') 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(): -- cgit v1.2.3