Make sure that qemu-sanity-check -v displays kernel output
[qemu-sanity-check.git] / src / qemu-sanity-check.in
index 79372ed..56e93c2 100644 (file)
@@ -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"