mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Misc: Fixup for accept-expected-changes-from-ci.py
Allow empty lines while looking for diff (between `---expected` and `FAILED`). This can happen when there is `Locations outside the test directory` since an empty line is printed after that warning message (this output can be interleaved with the diff due to parallel execution).
This commit is contained in:
@@ -114,7 +114,7 @@ def make_patches_from_log_file(log_file_lines) -> List[Patch]:
|
||||
while True:
|
||||
next_line = parse_log_line(next(lines))
|
||||
# it can be the case that
|
||||
if next_line[0] in (" ", "-", "+", "@"):
|
||||
if next_line and next_line[0] in (" ", "-", "+", "@"):
|
||||
lines_changed.append(next_line)
|
||||
if "FAILED" in next_line:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user