From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E411C611B for ; Sun, 28 May 2023 19:50:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72E52C433EF; Sun, 28 May 2023 19:50:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1685303410; bh=jES49ybjzaym9a+DhZf3qWrKpvcFrDdD0nUxASV/xhs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dTZLgWC6XFXsOJpDXSGfmWE9edHm+LKFLtrq2Dex6dyPWdZjyvcpPYyda5v3kAhLt bf5VmBQ1ud8BnI2aFOKc6FMiJX6U3bBL+XnK41ldrjgKYMqZyYIptwmZdSNodpyyqr 7RZsPxm48t/BwM+flsCfQUSLjIxWS2b2wQiRflHk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Po-Hsu Lin , Ido Schimmel , Simon Horman , "David S. Miller" Subject: [PATCH 5.15 37/69] selftests: fib_tests: mute cleanup error message Date: Sun, 28 May 2023 20:11:57 +0100 Message-Id: <20230528190829.740389462@linuxfoundation.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230528190828.358612414@linuxfoundation.org> References: <20230528190828.358612414@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Po-Hsu Lin commit d226b1df361988f885c298737d6019c863a25f26 upstream. In the end of the test, there will be an error message induced by the `ip netns del ns1` command in cleanup() Tests passed: 201 Tests failed: 0 Cannot remove namespace file "/run/netns/ns1": No such file or directory This can even be reproduced with just `./fib_tests.sh -h` as we're calling cleanup() on exit. Redirect the error message to /dev/null to mute it. V2: Update commit message and fixes tag. V3: resubmit due to missing netdev ML in V2 Fixes: b60417a9f2b8 ("selftest: fib_tests: Always cleanup before exit") Signed-off-by: Po-Hsu Lin Reviewed-by: Ido Schimmel Reviewed-by: Simon Horman Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/net/fib_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/testing/selftests/net/fib_tests.sh +++ b/tools/testing/selftests/net/fib_tests.sh @@ -68,7 +68,7 @@ setup() cleanup() { $IP link del dev dummy0 &> /dev/null - ip netns del ns1 + ip netns del ns1 &> /dev/null ip netns del ns2 &> /dev/null }