Thread (30 messages) flat view 30 messages, 2 authors, 2021-11-10

Re: [PATCH 10/11] selftests: nettest: Add NETTEST_CLIENT,SERVER}_TIMEOUT envvars

From: David Ahern <hidden>
Date: 2021-10-06 14:59:06
Also in: linux-kselftest, lkml

On 10/6/21 5:47 AM, Leonard Crestez wrote:
Move the single "prog_timeout_ms" into sock_args and split into client
and server timeouts.

Add NETTEST_CLIENT_TIMEOUT and NETTEST_SERVER_TIMEOUT which can set a
default value different than the default of 5 seconds.

This allows exporting NETTEST_CLIENT_TIMEOUT=0.1 and running all of
fcnal-test.sh quickly.
The command takes command line arguments; no need to make 2 special
environment variables.
A reduced server timeout is less useful, most tests would work fine with
an infinite timeout because nettest is launched in the background and
killed explicitly.
The server timeout was only for cleanup (the tests have a very long
history); given the kill on processes launched the server could just
wait forever.
Signed-off-by: Leonard Crestez <redacted>
---
 tools/testing/selftests/net/nettest.c | 66 ++++++++++++++++++++++-----
 1 file changed, 54 insertions(+), 12 deletions(-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help