Commit 244916cd authored by Z Nguyen-Huu's avatar Z Nguyen-Huu Committed by Commit Bot

Fix csuite compare command

csuite.py compare command currently throws exception

"_csv.Error: iterator should return strings, not bytes
(did you open the file in text mode?)"

This should fix it.

Change-Id: I69c0ec43575a8c3627dac81dc99e47ba6adf6f61
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2316833Reviewed-by: 's avatarMichael Stanton <mvstanton@chromium.org>
Commit-Queue: Z Nguyen-Huu <duongn@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#69050}
parent c63c7f6b
...@@ -189,7 +189,7 @@ def ProcessResults(opts, results, baselines): ...@@ -189,7 +189,7 @@ def ProcessResults(opts, results, baselines):
PrintSeparator(opts, baselines, False) PrintSeparator(opts, baselines, False)
def ProcessFile(file_path): def ProcessFile(file_path):
file_reader = csv.reader(open(file_path, 'rb'), delimiter=',') file_reader = csv.reader(open(file_path, 'r'), delimiter=',')
benchmark_results = {} benchmark_results = {}
current_rows = [] current_rows = []
for row in file_reader: for row in file_reader:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment