Skip to content

Commit

Permalink
Revert "daca: filter checker results when there are syntaxError/unkno…
Browse files Browse the repository at this point in the history
…wnMacro/etc (danmar#5214)" [skip ci]

This reverts commit 7ff58da.
  • Loading branch information
firewave committed Oct 26, 2023
1 parent a584083 commit 1b602b7
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions tools/donate_cpu_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,25 +608,6 @@ def diff_results(ver1, results1, ver2, results2):
ret += ver2 + ' ' + r2[i2] + '\n'
i2 += 1

# if there are syntaxError/unknownMacro/etc then analysis stops.
# diffing normal checker warnings will not make much sense
bailout_ids = ('[syntaxError]', '[unknownMacro]')
has_bailout_id = False
for id in bailout_ids:
if (id in results1) or (id in results1):
has_bailout_id = True
if has_bailout_id:
def check_bailout(line):
for id in bailout_ids:
if line.endswith(id):
return True
return False
out = ''
for line in ret.split('\n'):
if check_bailout(line):
out += line + '\n'
ret = out

return ret


Expand Down

0 comments on commit 1b602b7

Please sign in to comment.