From patchwork Fri Dec 11 04:24:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Po-Hsu Lin X-Patchwork-Id: 343081 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=-16.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, 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 6B73DC433FE for ; Fri, 11 Dec 2020 04:26:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 449F623EF1 for ; Fri, 11 Dec 2020 04:26:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405341AbgLKEZt (ORCPT ); Thu, 10 Dec 2020 23:25:49 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:32808 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405319AbgLKEZK (ORCPT ); Thu, 10 Dec 2020 23:25:10 -0500 Received: from mail-pg1-f199.google.com ([209.85.215.199]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1knZym-0001Qw-5t for linux-kselftest@vger.kernel.org; Fri, 11 Dec 2020 04:24:28 +0000 Received: by mail-pg1-f199.google.com with SMTP id u26so5601233pgl.15 for ; Thu, 10 Dec 2020 20:24:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=tPXZ+7QAQmRj9Gg0uL9q/qwGUoI81azIs/Hz+gXLnNo=; b=Mg8wd4nJbB4whxKwFdsLzlrQVBetPHueO94BpL5GJn1gwoPKiWsDJaiHRdBz+uZd8P Zaa+we4tr8/grlL41v6U9qfi2ibkq6/uSDQu0/CMBBVOlzC5uT6GZtO6KnxGTadIj4RA UfEvTjY7v+aQ7WaGVFpUiZLycFW8p3wwhhK5EKRBOp4+DAJx81x1BfswYuYQ6PUWAoOA poyvUREdempgAEjqW/qTrbiGrDUKtllGv7EK9hAf5tBtZqw5NkGMPEHpEphooxJNWhff 6qm99k5Qn9Elbs3/fgdQ3F/6Z8Ru7GpkeoIF4T8uCNDn9OMXsahYpN5ar1spkuucYhZJ XKHQ== X-Gm-Message-State: AOAM5312FChRUjAM9Aj5SgiFFjkPTRUUq/yWpTN+75F+YyKLnb14qNpd 83kIiV54DOD/RtZva5Xd6E6trn0yR8lh0eWLnGGFqZcezkmd6c4EmXD5l67uX6OeAlswOlZ08Th W5nGeMrHkw5/e/rS46wB9vyg/lu0E3vfEiLD4F9aajTad X-Received: by 2002:a63:eb4b:: with SMTP id b11mr9849641pgk.351.1607660666847; Thu, 10 Dec 2020 20:24:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyITTeGHkWP6edOaQgLt1ofgM+1Ufy7TeSzXSBK85/VCt82D1wcKgDJYTgmykOnGtzogKj/Sg== X-Received: by 2002:a63:eb4b:: with SMTP id b11mr9849621pgk.351.1607660666556; Thu, 10 Dec 2020 20:24:26 -0800 (PST) Received: from Leggiero.taipei.internal (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id m26sm8241810pfo.123.2020.12.10.20.24.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Dec 2020 20:24:25 -0800 (PST) From: Po-Hsu Lin To: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: davem@davemloft.net, po-hsu.lin@canonical.com, kuba@kernel.org, shuah@kernel.org Subject: [PATCHv2] selftests: test_vxlan_under_vrf: mute unnecessary error message Date: Fri, 11 Dec 2020 12:24:20 +0800 Message-Id: <20201211042420.16411-1-po-hsu.lin@canonical.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org The cleanup function in this script that tries to delete hv-1 / hv-2 vm-1 / vm-2 netns will generate some uncessary error messages: Cannot remove namespace file "/run/netns/hv-2": No such file or directory Cannot remove namespace file "/run/netns/vm-1": No such file or directory Cannot remove namespace file "/run/netns/vm-2": No such file or directory Redirect it to /dev/null like other commands in the cleanup function to reduce confusion. Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/net/test_vxlan_under_vrf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/test_vxlan_under_vrf.sh b/tools/testing/selftests/net/test_vxlan_under_vrf.sh index 09f9ed9..534c8b7 100755 --- a/tools/testing/selftests/net/test_vxlan_under_vrf.sh +++ b/tools/testing/selftests/net/test_vxlan_under_vrf.sh @@ -50,7 +50,7 @@ cleanup() { ip link del veth-tap 2>/dev/null || true for ns in hv-1 hv-2 vm-1 vm-2; do - ip netns del $ns || true + ip netns del $ns 2>/dev/null || true done }