From patchwork Thu May 18 03:33:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Po-Hsu Lin X-Patchwork-Id: 683778 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BDFFDC7EE24 for ; Thu, 18 May 2023 03:33:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229644AbjERDdj (ORCPT ); Wed, 17 May 2023 23:33:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229546AbjERDdj (ORCPT ); Wed, 17 May 2023 23:33:39 -0400 Received: from smtp-relay-canonical-0.canonical.com (smtp-relay-canonical-0.canonical.com [185.125.188.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EA5B30E6; Wed, 17 May 2023 20:33:38 -0700 (PDT) Received: from Phocidae.conference (1.general.phlin.uk.vpn [10.172.194.38]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id 3D89B3FDAB; Thu, 18 May 2023 03:33:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1684380814; bh=kL6aA47L3WqEzNl5PtMbesiM21ZCN2OSCmuu6MyV2UM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=PaTUDXGzVbVRyhjf3Oe9r+ChzzYrmoY7W2d4ctyetr9PK46AebFjdxr7PU14gSXz7 xOlEQQ97uocBYFuuOe1fMk+N+agp0Epso2s62x1z5MbGNvNzzE9FWeb5y2pkptrM9P VtVe0eWAUeN5CPCNXt+M7V4/QLuzMco54aHODhFvw663qu0eMpkPNKE92lomoidX/9 WZF7a7duapjsK5kAZoVY0glr/X9lcSTfV7LbVIuluDSGx93ttghErZ8BsMHvTzANs2 AxCBIhqSxojHch1y3qeNZRRorH6zupwLZYJ1ujNFZdyjERujkA+sgqKcgHPRkOk8+5 6E2VZp3RkvNPg== From: Po-Hsu Lin To: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: po-hsu.lin@canonical.com, roxana.nicolescu@canonical.com, shuah@kernel.org, pabeni@redhat.com, kuba@kernel.org, edumazet@google.com, davem@davemloft.net Subject: [PATCHv2 net] selftests: fib_tests: mute cleanup error message Date: Thu, 18 May 2023 11:33:10 +0800 Message-Id: <20230518033310.19893-1-po-hsu.lin@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org 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. Fixes: b60417a9f2b8 ("selftest: fib_tests: Always cleanup before exit") Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/net/fib_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/fib_tests.sh b/tools/testing/selftests/net/fib_tests.sh index 7da8ec8..35d89df 100755 --- 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 }