Skip to content

Commit 2f186dd

Browse files
dsahernkuba-moo
authored andcommitted
selftests: Replace sleep with slowwait
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]>
1 parent 53d5917 commit 2f186dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/net/fcnal-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ show_hint()
189189
kill_procs()
190190
{
191191
killall nettest ping ping6 >/dev/null 2>&1
192-
sleep 1
192+
slowwait 2 sh -c 'test -z "$(pgrep '"'^(nettest|ping|ping6)$'"')"'
193193
}
194194

195195
set_ping_group()

0 commit comments

Comments
 (0)