Skip to content

Commit 433bb0b

Browse files
feedback
Created using spr 1.3.6
2 parents d70badb + 173805e commit 433bb0b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.ci/generate_test_report_lib.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,16 @@ def _parse_ninja_log(ninja_log: list[str]) -> list[tuple[str, str]]:
2727
# We hit the end of the log without finding a build failure, go to
2828
# the next log.
2929
return failures
30+
# We are trying to parse cases like the following:
31+
#
32+
# [4/5] test/4.stamp
33+
# FAILED: touch test/4.stamp
34+
# touch test/4.stamp
35+
#
3036
# index will point to the line that starts with Failed:. The progress
31-
# indicator is the line before this and contains a pretty printed version
32-
# of the target being built. We use this and remove the progress information
33-
# to get a succinct name for the target.
37+
# indicator is the line before this ([4/5] test/4.stamp) and contains a pretty
38+
# printed version of the target being built (test/4.stamp). We use this line
39+
# and remove the progress information to get a succinct name for the target.
3440
failing_action = ninja_log[index - 1].split("] ")[1]
3541
failure_log = []
3642
while (

0 commit comments

Comments
 (0)