netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Ahern <dsahern@kernel.org>
To: netdev@vger.kernel.org
Cc: kuba@kernel.org, linux-kselftest@vger.kernel.org,
	shuah@kernel.org, David Ahern <dsahern@kernel.org>
Subject: [PATCH net-next 2/2] selftests: Replace sleep with slowwait
Date: Tue,  9 Sep 2025 20:58:28 -0600	[thread overview]
Message-ID: <20250910025828.38900-2-dsahern@kernel.org> (raw)
In-Reply-To: <20250910025828.38900-1-dsahern@kernel.org>

Replace the sleep in kill_procs with slowwait.

Signed-off-by: David Ahern <dsahern@kernel.org>
---
 tools/testing/selftests/net/fcnal-test.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/net/fcnal-test.sh b/tools/testing/selftests/net/fcnal-test.sh
index 068379a79651..a527e3556763 100755
--- a/tools/testing/selftests/net/fcnal-test.sh
+++ b/tools/testing/selftests/net/fcnal-test.sh
@@ -189,7 +189,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)$'"')"'
 }
 
 set_ping_group()
-- 
2.43.0


  reply	other threads:[~2025-09-10  2:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-10  2:58 [PATCH net-next 1/2] selftests: Disable dad for ipv6 in fcnal-test.sh David Ahern
2025-09-10  2:58 ` David Ahern [this message]
2025-09-11 16:49   ` [PATCH net-next 2/2] selftests: Replace sleep with slowwait Simon Horman
2025-09-11 16:49 ` [PATCH net-next 1/2] selftests: Disable dad for ipv6 in fcnal-test.sh Simon Horman
2025-09-12  1:33 ` patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250910025828.38900-2-dsahern@kernel.org \
    --to=dsahern@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=shuah@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).