diff options
author | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2018-05-24 13:34:26 +0100 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2018-05-24 13:34:26 +0100 |
commit | 8da109158392d03f8d06ed126a8a5fd828342574 (patch) | |
tree | d2697fd8e6acfc151183c6226c87350e0800b216 | |
parent | 7d31f4287387f0692a67a2c53300e63b92d09c8a (diff) |
aep-pre-post: fix LISA postprocessing script
Remove git commit ID from concatenated name of the metric collected by
LISA.
Change-Id: Id5d936a3a14ae242d9944beda3bf8aab0f028627
Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
-rw-r--r-- | automated/linux/aep-pre-post/postprocess_lisa_results.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/automated/linux/aep-pre-post/postprocess_lisa_results.py b/automated/linux/aep-pre-post/postprocess_lisa_results.py index c0426c5..a313c5c 100644 --- a/automated/linux/aep-pre-post/postprocess_lisa_results.py +++ b/automated/linux/aep-pre-post/postprocess_lisa_results.py @@ -17,7 +17,7 @@ def main(): row_index = 0 headers = [] measurements = {} - with open(args.source_filename, "rb") as f: + with open(args.source_filename, "r") as f: reader = csv.reader(f) for row in reader: if row_index == 0: @@ -29,8 +29,10 @@ def main(): headers[item_index] = headers[item_index] + "_" + item item_index = item_index + 1 else: - # concatenate first 3 cells - name = row[0] + "_" + row[1] + "_" + row[2] + # concatenate first 2 cells + # 3rd cell contains git commit which changes often + name = row[0] + "_" + row[1] + # start from column 4 (indexed from 0) item_index = 3 for item in row[item_index:]: if item != "": |