net: stream: test reconnect option with an unix socket
authorLaurent Vivier <lvivier@redhat.com>
Wed, 3 May 2023 09:41:09 +0000 (11:41 +0200)
committerThomas Huth <thuth@redhat.com>
Tue, 16 May 2023 07:14:18 +0000 (09:14 +0200)
commiteb96660507ecbe479c6a38639861f65b23d067d7
tree19430f6401fd1f9a1907a9a44faaf4aff25e3386
parent1e05888ab5e0f78adb29c4344586fb7a6df572c6
net: stream: test reconnect option with an unix socket

We can have failure with the inet type test because the port address
is not allocated atomically and can be taken by another test between its
selection and the start of QEMU. To avoid that, use an unix socket with
a path that is unique

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Message-Id: <20230503094109.1198248-1-lvivier@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/netdev-socket.c