Skip to content

Commit

Permalink
Parse evaluation warnings and display in separate section.
Browse files Browse the repository at this point in the history
Signed-off-by: magic_rb <[email protected]>
  • Loading branch information
MagicRB authored and Mic92 committed Jun 13, 2024
1 parent aeddb48 commit 1788b41
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion buildbot_nix/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def __init__(
kwargs = self.setupShellMixin(kwargs)
super().__init__(**kwargs)
self.project = project
self.observer = logobserver.BufferLogObserver()
self.observer = logobserver.BufferLogObserver(wantStderr=True)
self.addLogObserver("stdio", self.observer)
self.supported_systems = supported_systems

Expand All @@ -172,6 +172,11 @@ def run(self) -> Generator[Any, object, Any]:
# if the command passes extract the list of stages
result = cmd.results()
if result == util.SUCCESS:
log.info(self.observer.getStderr())
self.addHTMLLog(
"Evaluation Warnings", f"<pre>{self.observer.getStderr()}</pre>"
)

# create a ShellCommand for each stage and add them to the build
jobs = []

Expand Down

0 comments on commit 1788b41

Please sign in to comment.