Skip to content

Commit

Permalink
Added explicit UTF-8 encoding to test-perf.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Jeffrey committed Nov 30, 2017
1 parent 9d602a7 commit 4ad8019
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etc/ci/performance/runner.py
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4ad8019

Please sign in to comment.