From 4ad801930a021306ce43c5eca9d4197197657171 Mon Sep 17 00:00:00 2001 From: Alan Jeffrey Date: Thu, 30 Nov 2017 12:45:26 -0600 Subject: [PATCH] Added explicit UTF-8 encoding to test-perf. --- etc/ci/performance/runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/ci/performance/runner.py b/etc/ci/performance/runner.py index 9a09399f09d..7b895f11ca0 100644 --- a/etc/ci/performance/runner.py +++ b/etc/ci/performance/runner.py @@ -100,7 +100,7 @@ def parse_log(log, testcase, url): block = [] copy = False for line_bytes in log.splitlines(): - line = line_bytes.decode() + line = line_bytes.decode('utf-8') if line.strip() == ("[PERF] perf block start"): copy = True @@ -281,7 +281,7 @@ def save_result_csv(results, filename, manifest, expected_runs, base): 'unloadEventStart', ] - with open(filename, 'w') as csvfile: + with open(filename, 'w', encoding='utf-8') as csvfile: writer = csv.DictWriter(csvfile, fieldnames) writer.writeheader() writer.writerows(results)