aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/291
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2020-10-27 17:44:16 +0100
committerEric Blake <eblake@redhat.com>2020-10-30 15:10:14 -0500
commitcb7223ac33fa35976d64f31145122965c1ba332d (patch)
tree0fb1ca1ef4b677fcd1596bc97e2b2fc50d9533b3 /tests/qemu-iotests/291
parentb4af1df08f9433d858ec01aff4ec9f06cb28128b (diff)
downloadqemu-cb7223ac33fa35976d64f31145122965c1ba332d.zip
qemu-cb7223ac33fa35976d64f31145122965c1ba332d.tar.gz
qemu-cb7223ac33fa35976d64f31145122965c1ba332d.tar.bz2
iotests/291: Stop NBD server
nbd_server_start_unix_socket() includes an implicit nbd_server_stop(), but we still need an explicit one at the end of the test (where there follows no next nbd_server_start_unix_socket()), or qemu-nbd will linger until the test exits. This will become important when enabling this test to run on FUSE exports, because then the export (which is the image used by qemu-nbd) will go away before qemu-nbd exits, which will lead to qemu-nbd complaining that it cannot flush the bitmaps in the image. Signed-off-by: Max Reitz <mreitz@redhat.com> Message-Id: <20201027164416.144115-3-mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/291')
-rwxr-xr-xtests/qemu-iotests/2912
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/qemu-iotests/291 b/tests/qemu-iotests/291
index 77fa38f..b7320bc 100755
--- a/tests/qemu-iotests/291
+++ b/tests/qemu-iotests/291
@@ -128,6 +128,8 @@ nbd_server_start_unix_socket -r -f qcow2 -B b3 "$TEST_IMG"
$QEMU_IMG map --output=json --image-opts \
"$IMG,x-dirty-bitmap=qemu:dirty-bitmap:b3" | _filter_qemu_img_map
+nbd_server_stop
+
# success, all done
echo '*** done'
rm -f $seq.full