iotests/nbd-reconnect-on-open: Fix NBD socket path
commitcf6052f111f8d6a2ef083f3e2848bc6f8180bb96
authorKevin Wolf <kwolf@redhat.com>
Wed, 3 May 2023 16:50:19 +0000 (3 18:50 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 10 May 2023 12:16:53 +0000 (10 14:16 +0200)
tree574fa46e9cd8b692274d1b5a1f43f381fa021076
parente2626874a32602d4e52971c786ef5ffb4430629d
iotests/nbd-reconnect-on-open: Fix NBD socket path

Socket paths need to be short to avoid failures. This is why there is a
iotests.sock_dir (defaulting to /tmp) separate from the disk image base
directory.

Make use of it to fix failures in too deeply nested test directories.

Fixes: ab7f7e67a7e7b49964109501dfcde4ec29bae60e
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20230503165019.8867-1-kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/tests/nbd-reconnect-on-open
tests/qemu-iotests/tests/nbd-reconnect-on-open.out