Even in the case when the test doesn't fail, if the -v option was used
make sure the full output is shown.
#!/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
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"