Skip to content

Commit e12457d

Browse files
nashifdanieldegrasse
authored andcommitted
twister: reports: try to show more build failures in generated summary
Some Build failures are actually cmake issues, so in that case, if nothing is found as build failure, try to parse for cmake issues. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
1 parent 1243fdd commit e12457d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/pylib/twister/twisterlib/reports.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,4 +845,9 @@ def _parse_build_failure(log: str) -> str | None:
845845
return line[line.index('error: ') :].strip()
846846
elif ": in function " in line:
847847
last_warning = line[line.index('in function') :].strip()
848+
elif "CMake Error at" in line:
849+
for next_line in lines[i + 1 :]:
850+
if next_line.strip():
851+
return line + ' ' + next_line
852+
return line
848853
return None

0 commit comments

Comments
 (0)