summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorBoris Sukholitko <boris.sukholitko@broadcom.com>2023-05-04 10:48:13 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2023-05-10 09:31:06 +0200
commit1114803c2da974526ecbc0bd81e6c637bf257de5 (patch)
tree9ba43ad3db7d0b4b851e0fe14b62470cabfa234e /tools
parentselftests: nft_flowtable.sh: no need for ps -x option (diff)
downloadlinux-1114803c2da974526ecbc0bd81e6c637bf257de5.tar.xz
linux-1114803c2da974526ecbc0bd81e6c637bf257de5.zip
selftests: nft_flowtable.sh: wait for specific nc pids
Doing wait with no parameters may interfere with some of the tests having their own background processes. Although no such test is currently present, the cleanup is useful to rely on the nft_flowtable.sh for local development (e.g. running background tcpdump command during the tests). Signed-off-by: Boris Sukholitko <boris.sukholitko@broadcom.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/selftests/netfilter/nft_flowtable.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/netfilter/nft_flowtable.sh b/tools/testing/selftests/netfilter/nft_flowtable.sh
index 3cf20e9bd3a6..92bc308bf168 100755
--- a/tools/testing/selftests/netfilter/nft_flowtable.sh
+++ b/tools/testing/selftests/netfilter/nft_flowtable.sh
@@ -296,7 +296,8 @@ test_tcp_forwarding_ip()
kill $cpid
fi
- wait
+ wait $lpid
+ wait $cpid
if ! check_transfer "$nsin" "$ns2out" "ns1 -> ns2"; then
lret=1