From: Richard W.M. Jones Date: Fri, 1 Sep 2023 12:56:35 +0000 (+0100) Subject: Make sure that qemu-sanity-check -v displays kernel output X-Git-Url: http://git.annexia.org/?p=qemu-sanity-check.git;a=commitdiff_plain;h=2492fbbf626e0b2a8c1e22b6e926382fcd343666 Make sure that qemu-sanity-check -v displays kernel output Even in the case when the test doesn't fail, if the -v option was used make sure the full output is shown. --- diff --git a/src/qemu-sanity-check.in b/src/qemu-sanity-check.in index 79372ed..56e93c2 100644 --- a/src/qemu-sanity-check.in +++ b/src/qemu-sanity-check.in @@ -1,7 +1,7 @@ #!/bin/bash # -*- shell-script -*- # qemu-sanity-check -# Copyright (C) 2013-2020 Red Hat Inc. +# Copyright (C) 2013-2023 Red Hat Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -226,6 +226,10 @@ elif [ $r -ne 0 ]; then exit 1 fi +if [ "$verbose" = "yes" ]; then + cat "$test_output" +fi + # Verify that userspace was reached. if ! grep -sq "initrd started up OK" "$test_output"; then cat "$test_output"