iotests/209: Create socket in $SOCK_DIR
Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 20191017133155.5327-19-mreitz@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
9a1c51e11a
commit
73752070be
|
@ -24,7 +24,8 @@ from iotests import qemu_img_create, qemu_io, qemu_img_verbose, qemu_nbd, \
|
||||||
|
|
||||||
iotests.verify_image_format(supported_fmts=['qcow2'])
|
iotests.verify_image_format(supported_fmts=['qcow2'])
|
||||||
|
|
||||||
disk, nbd_sock = file_path('disk', 'nbd-sock')
|
disk = file_path('disk')
|
||||||
|
nbd_sock = file_path('nbd-sock', base_dir=iotests.sock_dir)
|
||||||
nbd_uri = 'nbd+unix:///exp?socket=' + nbd_sock
|
nbd_uri = 'nbd+unix:///exp?socket=' + nbd_sock
|
||||||
|
|
||||||
qemu_img_create('-f', iotests.imgfmt, disk, '1M')
|
qemu_img_create('-f', iotests.imgfmt, disk, '1M')
|
||||||
|
|
Loading…
Reference in a new issue