Skip to content

Commit 0464740

Browse files
committed
Revert "benchmarks.py: add a runtime error if the format output is wrong"
In fact the output just contains a lot of lines with irrelevant information that we just need to skip.
1 parent b68fed3 commit 0464740

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

benchmarks.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ def action_run(args):
332332
output = _sprun(command).stdout.decode().splitlines()
333333
for line in output:
334334
matches = p.findall(line.rstrip())
335+
# We're interested only in the lines in the output that look like that they contain benchmark results.
335336
if len(matches) == 1 and len(matches[0]) == 5:
336337
if matches[0][0] != group or matches[0][1] != bench:
337338
raise RuntimeError("Seems like swift executed wrong benchmark")
@@ -342,8 +343,6 @@ def action_run(args):
342343
print(result.str_compare(base_result))
343344
else:
344345
print(result)
345-
else:
346-
raise RuntimeError("Unexpected format of the output")
347346

348347
if base is not None:
349348
print(stat_keeper.summary())

0 commit comments

Comments
 (0)