diff options
author | Caroline Tice <cmtice@google.com> | 2016-08-16 10:39:04 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-08-17 14:41:15 -0700 |
commit | 882e707d7e4f63c8e64fa554e77303c4800258c7 (patch) | |
tree | 095d68bd3f873ddaf16209e171019546199b417e /cros_utils | |
parent | babb65232cbb7de2365d117f3593cdea8a263f05 (diff) | |
download | toolchain-utils-882e707d7e4f63c8e64fa554e77303c4800258c7.tar.gz |
[crosperf] Fix telemetry results parsing.
Many telemetry results fields now contain multiple values. This CL
fixes crosperf to accomodate that.
BUG=None
TEST=Ran crosperf with change and it worked.
Change-Id: Iccb8926223c8447b72d51f413756f5dbc09f89de
Reviewed-on: https://chrome-internal-review.googlesource.com/276817
Commit-Ready: Caroline Tice <cmtice@google.com>
Tested-by: Caroline Tice <cmtice@google.com>
Reviewed-by: Luis Lozano <llozano@chromium.org>
Diffstat (limited to 'cros_utils')
-rw-r--r-- | cros_utils/tabulator.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cros_utils/tabulator.py b/cros_utils/tabulator.py index 2c26ccad..1a262f17 100644 --- a/cros_utils/tabulator.py +++ b/cros_utils/tabulator.py @@ -259,6 +259,8 @@ class Result(object): baseline_values: List of baseline values. Can be none if this is the baseline itself. """ + if len(values) == 1 and type(values[0]) == list: + values = values[0] all_floats = True values = _StripNone(values) if not values: |