Skip to content

Commit

Permalink
tools: add logmonitor on stderr by default
Browse files Browse the repository at this point in the history
If a test fails there is little visiblity right now what exactly
went wrong because the osbuild --json will default to a NullMontior.

This commit switches to a LogMontior on stderr so that if the
test fails we get the full log of the operation.
  • Loading branch information
mvo5 authored and achilleas-k committed May 3, 2024
1 parent c15cf3e commit 6bb4a11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/osbuild-image-test
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ class OSBuild:
"--store", os.fspath(self.store),
"--output-dir", os.fspath(self.outdir),
"--json",
# improve visibility for real errors by logging to stderr
"--monitor=LogMonitor", "--monitor-fd=2",
]

if args:
Expand Down

0 comments on commit 6bb4a11

Please sign in to comment.