iotests: Make 233 output more reliable
commitd08980511d78480ffbbd9897b7fd050bd03d518d
authorEric Blake <eblake@redhat.com>
Thu, 17 Jan 2019 19:36:38 +0000 (17 13:36 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 21 Jan 2019 21:49:51 +0000 (21 15:49 -0600)
tree4c203a449a7eb71bc1dd6d53d192d47bf2a3d1fe
parent166609e6070fab3424510ac7292ecb585f8b80fb
iotests: Make 233 output more reliable

We have a race between the nbd server and the client both trying
to report errors at once which can make the test sometimes fail
if the output lines swap order under load.  Break the race by
collecting server messages into a file and then replaying that
at the end of the test.

We may yet want to fix the server to not output ANYTHING for a
client action except when -v was used (to avoid malicious clients
from being able to DoS a server by filling up its logs), but that
is saved for a future patch.

Signed-off-by: Eric Blake <eblake@redhat.com>
CC: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20190117193658.16413-2-eblake@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
tests/qemu-iotests/233
tests/qemu-iotests/233.out