selftests: Replace sleep with slowwait

[ Upstream commit 2f186dd5585c3afb415df80e52f71af16c9d3655 ]

Replace the sleep in kill_procs with slowwait.

Signed-off-by: David Ahern <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
David Ahern 2025-09-09 20:58:28 -06:00 • committed by Greg Kroah-Hartman
commit 9cfaa6b715

View file

@ -164,7 +164,7 @@ show_hint()
kill_procs()
{
killall nettest ping ping6 >/dev/null 2>&1
sleep 1
slowwait 2 sh -c 'test -z "$(pgrep '"'^(nettest|ping|ping6)$'"')"'
}
do_run_cmd()