]> git.proxmox.com Git - mirror_qemu.git/commit
tests/boot-serial: Do not delete the output file in case of errors
authorThomas Huth <thuth@redhat.com>
Tue, 22 May 2018 08:30:31 +0000 (10:30 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 29 Jun 2018 11:02:50 +0000 (13:02 +0200)
commit28a3cfc10b2e1a34985797357b4aa7558a63d08f
tree21c693ef07bfb5c310e60b3ba0736b3c4e651c58
parenta71c775b24ebc664129eb1d9b4c360590353efd5
tests/boot-serial: Do not delete the output file in case of errors

Peter reported that the boot-serial tester sometimes runs into timeouts
with SPARC guests. It's currently completely unclear whether this is due
to too much load on the host machine (so that the guest really just ran
too slow), or whether there is something wrong with the guest's firmware
boot. For further debugging, we need the serial output of the guest in
case of errors, so instead of unlinking the file immediately, this is
now only done in case of success. In case of error, print the name of the
file with the serial output via g_error() (which then also calls abort()
internally to mark the test as failed).

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1526977831-31129-1-git-send-email-thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/boot-serial-test.c