Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 3dc6c76391cb ("selftests: net: Add IPv6 support to netconsole basic tests")
Signed-off-by: Pin-yen Lin <treapking@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260210005939.3230550-1-treapking@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Pin-yen Lin and committed by
Jakub Kicinski
a68a9bd0 83835228

+2 -2
+2 -2
tools/testing/selftests/drivers/net/lib/sh/lib_netcons.sh
··· 249 249 SOCAT_MODE="UDP6-LISTEN" 250 250 fi 251 251 252 - # Just wait for 2 seconds 253 - timeout 2 ip netns exec "${NAMESPACE}" \ 252 + # Just wait for 3 seconds 253 + timeout 3 ip netns exec "${NAMESPACE}" \ 254 254 socat "${SOCAT_MODE}":"${PORT}",fork "${OUTPUT}" 2> /dev/null 255 255 } 256 256