Skip to content

Commit 9edb34a

Browse files
committed
twister: Try to show more build failures
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 <[email protected]>
1 parent b8395a9 commit 9edb34a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/pylib/twister/twisterlib/reports.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,10 @@ def get_detailed_reason(self, reason: str, log: str) -> str:
800800
if error_key := self._parse_cmake_build_failure(log):
801801
return f"{reason} - {error_key}"
802802
elif reason == 'Build failure': # noqa SIM102
803-
if error_key := self._parse_build_failure(log):
803+
error_key = self._parse_build_failure(log)
804+
if error_key:
805+
return f"{reason} - {error_key}"
806+
elif error_key := self._parse_cmake_build_failure(log):
804807
return f"{reason} - {error_key}"
805808
return reason
806809

0 commit comments

Comments
 (0)