mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Added explicit UTF-8 encoding to test-perf.
This commit is contained in:
parent
9d602a7bb9
commit
4ad801930a
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue