From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shannon Nelson Subject: [PATCH net-next 1/2] selftests: rtnetlink: hide complaint from terminated monitor Date: Tue, 19 Jun 2018 22:42:42 -0700 Message-ID: <1529473363-4036-2-git-send-email-shannon.nelson@oracle.com> References: <1529473363-4036-1-git-send-email-shannon.nelson@oracle.com> To: netdev@vger.kernel.org, davem@davemloft.net, anders.roxell@linaro.org Return-path: Received: from aserp2120.oracle.com ([141.146.126.78]:50556 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751031AbeFTFm5 (ORCPT ); Wed, 20 Jun 2018 01:42:57 -0400 In-Reply-To: <1529473363-4036-1-git-send-email-shannon.nelson@oracle.com> Sender: netdev-owner@vger.kernel.org List-ID: Set up the "ip xfrm monitor" subprogram so as to not see a "Terminated" message when the subprogram is killed. Fixes: 5e596ee171ba ("selftests: add xfrm state-policy-monitor to rtnetlink.sh") Reported-by: Anders Roxell Signed-off-by: Shannon Nelson --- tools/testing/selftests/net/rtnetlink.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/testing/selftests/net/rtnetlink.sh b/tools/testing/selftests/net/rtnetlink.sh index 760faef..0a2bc6e 100755 --- a/tools/testing/selftests/net/rtnetlink.sh +++ b/tools/testing/selftests/net/rtnetlink.sh @@ -532,8 +532,7 @@ kci_test_ipsec() # start the monitor in the background tmpfile=`mktemp ipsectestXXX` - ip x m > $tmpfile & - mpid=$! + mpid=`(ip x m > $tmpfile & echo $!) 2>/dev/null` sleep 0.2 ipsecid="proto esp src $srcip dst $dstip spi 0x07" -- 2.7.4