mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 06:14:39 +01:00
selftests: netconsole: Increase port listening timeout
wait_for_port() can wait up to 2 seconds with the sleep and the polling
in wait_local_port_listen() combined. So, in netcons_basic.sh, the socat
process could die before the test writes to the netconsole.
Increase the timeout to 3 seconds to make netcons_basic.sh pass
consistently.
Fixes: 3dc6c76391 ("selftests: net: Add IPv6 support to netconsole basic tests")
Signed-off-by: Pin-yen Lin <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
This commit is contained in:
1 parent
8383522821
commit
a68a9bd086
1 file changed
+2
-2
@@ -249,8 +249,8 @@ function listen_port_and_save_to() {
|
||||
SOCAT_MODE="UDP6-LISTEN"
|
||||
fi
|
||||
|
||||
# Just wait for 2 seconds
|
||||
timeout 2 ip netns exec "${NAMESPACE}" \
|
||||
# Just wait for 3 seconds
|
||||
timeout 3 ip netns exec "${NAMESPACE}" \
|
||||
socat "${SOCAT_MODE}":"${PORT}",fork "${OUTPUT}" 2> /dev/null
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user