Skip to content

Commit 1788b41

Browse files
MagicRBMic92
authored andcommitted
Parse evaluation warnings and display in separate section.
Signed-off-by: magic_rb <[email protected]>
1 parent aeddb48 commit 1788b41

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

buildbot_nix/__init__.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def __init__(
159159
kwargs = self.setupShellMixin(kwargs)
160160
super().__init__(**kwargs)
161161
self.project = project
162-
self.observer = logobserver.BufferLogObserver()
162+
self.observer = logobserver.BufferLogObserver(wantStderr=True)
163163
self.addLogObserver("stdio", self.observer)
164164
self.supported_systems = supported_systems
165165

@@ -172,6 +172,11 @@ def run(self) -> Generator[Any, object, Any]:
172172
# if the command passes extract the list of stages
173173
result = cmd.results()
174174
if result == util.SUCCESS:
175+
log.info(self.observer.getStderr())
176+
self.addHTMLLog(
177+
"Evaluation Warnings", f"<pre>{self.observer.getStderr()}</pre>"
178+
)
179+
175180
# create a ShellCommand for each stage and add them to the build
176181
jobs = []
177182

0 commit comments

Comments
 (0)