]> git.ipfire.org Git - thirdparty/qemu.git/commit
iotests: Only kill NBD server if it runs
authorMax Reitz <mreitz@redhat.com>
Tue, 2 Dec 2014 17:32:48 +0000 (18:32 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 7 Jan 2015 21:08:47 +0000 (15:08 -0600)
commite6c172ad9e220e9ee013078502808b90aad12302
tree7cc1c6f42b1292b99e4932d0131565659b0c66c9
parent07ede68671f8b14fd42b72a43bd95af7d45f3611
iotests: Only kill NBD server if it runs

There may be NBD tests which do not create a sample image and simply
test whether wrong usage of the protocol is rejected as expected. In
this case, there will be no NBD server and trying to kill it during
clean-up will fail.

Cc: qemu-stable@nongnu.org
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit f798068c565918ead63218d083ff814b7635be72)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
tests/qemu-iotests/common.rc