From patchwork Fri Dec 11 04:21:30 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: 342365 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 0DC33C4361B for ; Fri, 11 Dec 2020 04:23:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D922923ED2 for ; Fri, 11 Dec 2020 04:23:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2395330AbgLKEWh (ORCPT ); Thu, 10 Dec 2020 23:22:37 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:60990 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725956AbgLKEWY (ORCPT ); Thu, 10 Dec 2020 23:22:24 -0500 Received: from mail-pf1-f198.google.com ([209.85.210.198]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1knZw6-0001Ig-FJ for linux-kselftest@vger.kernel.org; Fri, 11 Dec 2020 04:21:42 +0000 Received: by mail-pf1-f198.google.com with SMTP id y2so5539386pfr.12 for ; Thu, 10 Dec 2020 20:21:42 -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=JspH54kaca7824FYj3crMTiuCVdVdGc79gaSjAbBortaO2QC5p/eI3H18nxZaaQqZH Nk/7ev2Adp+An7Ni11Ue664gaW9ARtdyg5C8UJjEP5J+NjpkpkUdpxpUByKrNlkQDGat Swuxk+2Vb0a+e+EfYkg+ZFE1sw6q2PyxDbgRR2ZbBeM9g79D8GO/GaRKc3xkr4EtgMqK 8errfZrJ3sfgSfEphcv9kKbkY0zO+53Xw5ctcfXoBMAoCUeXSvcciYcFzfFM1fbIKKkn lnkaUH68ZVfdc0erzIg6+3PbmAXGVsErWIj6PEmZWDzJJGb8i2UiIvNQSiJqNM2Dvb3A D7iA== X-Gm-Message-State: AOAM531ngCkRShmkz3lr75XN2H3UdrZ7qsBhWwD/1UBL3dR0MJtvd0tk s/Ps/tK+c2DVYKYgdJ9WiBg4QaMH+JXbbWZ4pkNq0qrPj3IzXyZ3lkpXRqHm4kBNwmJV30HM8U2 czGpmB/ZxB7929Y5AszazrBHAaByJ7VF0mbzvUutgznAI X-Received: by 2002:a17:902:223:b029:da:af1e:b112 with SMTP id 32-20020a1709020223b02900daaf1eb112mr9425936plc.83.1607660501006; Thu, 10 Dec 2020 20:21:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJype2EWauSJ/rx0SVVALS+cwITbpDlYYVLnWabUpk/ByumEOCyFR74u9czeUWiq9nZo/Apb0g== X-Received: by 2002:a17:902:223:b029:da:af1e:b112 with SMTP id 32-20020a1709020223b02900daaf1eb112mr9425912plc.83.1607660500584; Thu, 10 Dec 2020 20:21:40 -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 f33sm7936424pgl.83.2020.12.10.20.21.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Dec 2020 20:21:39 -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: [PATCH] selftests: test_vxlan_under_vrf: mute uncessary error message Date: Fri, 11 Dec 2020 12:21:30 +0800 Message-Id: <20201211042130.16202-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 }