1
0

fix: do not print output on error if real-time output is enabled

This commit is contained in:
2024-10-09 09:10:19 +00:00
parent c53e0cc99b
commit 27abdc3687
2 changed files with 12 additions and 4 deletions

View File

@@ -352,7 +352,11 @@ func copyArtifactAndTest(slog zerolog.Logger, q *qemu.System, ka Artifact,
}
if err != nil || !res.Test.Ok {
slog.Error().Err(err).Msgf("test error\n%v\n", res.Test.Output)
if !realtimeOutput {
slog.Error().Err(err).Msgf("test failure\n%v\n", res.Test.Output)
} else {
slog.Error().Err(err).Msg("test failure")
}
return
}