[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200807193220.12735-1-fabf@skynet.be>
Date: Fri, 7 Aug 2020 21:32:20 +0200
From: Fabian Frederick <fabf@...net.be>
To: pablo@...filter.org, kadlec@...filter.org, fw@...len.de
Cc: netfilter-devel@...r.kernel.org, coreteam@...filter.org,
netdev@...r.kernel.org, Fabian Frederick <fabf@...net.be>
Subject: [PATCH 3/3 linux-next] selftests: netfilter: kill running process only
Avoid noise like the following:
nft_flowtable.sh: line 250: kill: (4691) - No such process
Signed-off-by: Fabian Frederick <fabf@...net.be>
---
tools/testing/selftests/netfilter/nft_flowtable.sh | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/netfilter/nft_flowtable.sh b/tools/testing/selftests/netfilter/nft_flowtable.sh
index e98cac6f8bfdd..a47d1d8322104 100755
--- a/tools/testing/selftests/netfilter/nft_flowtable.sh
+++ b/tools/testing/selftests/netfilter/nft_flowtable.sh
@@ -250,8 +250,14 @@ test_tcp_forwarding_ip()
sleep 3
- kill $lpid
- kill $cpid
+ if ps -p $lpid > /dev/null;then
+ kill $lpid
+ fi
+
+ if ps -p $cpid > /dev/null;then
+ kill $cpid
+ fi
+
wait
check_transfer "$ns1in" "$ns2out" "ns1 -> ns2"
--
2.27.0
Powered by blists - more mailing lists