OSDN Git Service

iotests: Switch nbd tests to use Unix rather than TCP
authorEric Blake <eblake@redhat.com>
Thu, 14 Nov 2019 21:34:13 +0000 (15:34 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 18 Nov 2019 22:38:38 +0000 (16:38 -0600)
commitf3923a72f199b2c63747a7032db74730546f55c6
tree46fa72e84d17e8a18df6166588b5255bcea73e44
parent509e91c127390343b7688ddea0b908fa3e8b2707
iotests: Switch nbd tests to use Unix rather than TCP

Up to now, all it took to cause a lot of iotest failures was to have a
background process such as 'nbdkit -p 10810 null' running, because we
hard-coded the TCP port.  Switching to a Unix socket eliminates this
contention.  We still have TCP coverage in test 233, and that test is
more careful to not pick a hard-coded port.

Add a comment explaining where the format layer applies when using
NBD as protocol (until NBD gains support for a resize extension, we
only pipe raw bytes over the wire).

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20191114213415.23499-3-eblake@redhat.com>
[eblake: Tweak socket name per Max Reitz' review]
tests/qemu-iotests/common.filter
tests/qemu-iotests/common.rc