aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Jeffrey <ajeffrey@mozilla.com>2017-11-30 12:45:26 -0600
committerAlan Jeffrey <ajeffrey@mozilla.com>2017-11-30 12:45:26 -0600
commit4ad801930a021306ce43c5eca9d4197197657171 (patch)
tree930c3e3c658e885b941e661bfc6c73a144651cd9
parent9d602a7bb9f452fc45f9367a09fbf2fe52d3e20e (diff)
downloadservo-4ad801930a021306ce43c5eca9d4197197657171.tar.gz
servo-4ad801930a021306ce43c5eca9d4197197657171.zip
Added explicit UTF-8 encoding to test-perf.
-rw-r--r--etc/ci/performance/runner.py4
1 files 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)