diff options
author | Caroline Tice <cmtice@google.com> | 2016-04-15 14:27:11 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-04-15 22:53:01 +0000 |
commit | 74d85cf83860538fcf57c413cf8ae416baa0ef51 (patch) | |
tree | ea2430a476e4b35335f9d17062fcb075c1867148 /crosperf | |
parent | eddb06396dc17fcec418c3aadc234f737b63c876 (diff) | |
download | toolchain-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.py | 5 |
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(): |