iotests: Do not rely on unavailable domains in 162
authorMax Reitz <mreitz@redhat.com>
Wed, 28 Sep 2016 20:46:44 +0000 (22:46 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 24 Oct 2016 15:54:03 +0000 (17:54 +0200)
commit12ac9d9e903e1a23d59aeb18d5eb50ddcf9ec975
tree293c66d2294ca5e54bf1e999b7101eb622a33d08
parent668b4406314828c8b22ffe5951c3014380d778f1
iotests: Do not rely on unavailable domains in 162

There are some (mostly ISP-specific) name servers who will redirect
non-existing domains to special hosts. In this case, we will get a
different error message when trying to connect to such a host, which
breaks test 162.

162 needed this specific error message so it can confirm that qemu was
indeed trying to connect to the user-specified port. However, we can
also confirm this by setting up a local NBD server on exactly that port;
so we can fix the issue by doing just that.

Reported-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/162
tests/qemu-iotests/162.out