From patchwork Fri Aug 7 19:32:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabian Frederick X-Patchwork-Id: 262647 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBBE3C433E0 for ; Fri, 7 Aug 2020 19:32:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C3973204EC for ; Fri, 7 Aug 2020 19:32:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726577AbgHGTce (ORCPT ); Fri, 7 Aug 2020 15:32:34 -0400 Received: from mailrelay110.isp.belgacom.be ([195.238.20.137]:57908 "EHLO mailrelay110.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725893AbgHGTce (ORCPT ); Fri, 7 Aug 2020 15:32:34 -0400 IronPort-SDR: V7AeIIJajMKV4ffn7ai1WZh4wGwVr3S6XxuFEUdpd/hcVCppxJWoEGlocw5gdFcvmvC9eayo0/ QekAqwLNr4+wgQ/Q1vZbdk3akSiZdK68n3EEahz4Xm7HfOhq8wfWrFtpXcZcGBqs+XtwDm7P/k WYOwZ86a7xAleMquu7e5WdJTXOkJj3A/WC7QAeUhywTE8YuC6y20yy1lL/x8+X+C8sprmVgQYe 9dSgG4JytyWiO7FtoYqwuI/Akhb3/1mCfxCk+yDgvlGmznWFVfXhf7F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6TSAYgyQJRxkNjisXjiZCMDcCBggBAQMJVwE9AZANAQE Received: from 16.165-182-91.adsl-dyn.isp.belgacom.be (HELO localhost.localdomain) ([91.182.165.16]) by relay.skynet.be with ESMTP; 07 Aug 2020 21:32:32 +0200 From: Fabian Frederick To: pablo@netfilter.org, kadlec@netfilter.org, fw@strlen.de Cc: netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, Fabian Frederick Subject: [PATCH 3/3 linux-next] selftests: netfilter: kill running process only Date: Fri, 7 Aug 2020 21:32:20 +0200 Message-Id: <20200807193220.12735-1-fabf@skynet.be> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Avoid noise like the following: nft_flowtable.sh: line 250: kill: (4691) - No such process Signed-off-by: Fabian Frederick --- 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"