From 2e82de99c15a6146f730d27c4c0310b4d73030c9 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 2 May 2024 12:22:09 +0200 Subject: [PATCH] tools: add logmonitor on stderr by default 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. --- tools/osbuild-image-test | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/osbuild-image-test b/tools/osbuild-image-test index aee82690..f4ed100c 100755 --- a/tools/osbuild-image-test +++ b/tools/osbuild-image-test @@ -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: