Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp434104rwd; Wed, 17 May 2023 21:48:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Azqo01aLrBh8QBU4f9bvMesvOMBbK8EdXMot+xWNk5OEVra7fayrN8NvmubV4ll2DpycS X-Received: by 2002:a17:902:a38b:b0:1ae:4248:c7f with SMTP id x11-20020a170902a38b00b001ae42480c7fmr902522pla.48.1684385314988; Wed, 17 May 2023 21:48:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684385314; cv=none; d=google.com; s=arc-20160816; b=UZx7TIOBLhb3u9Q5Y+5+RcuFfSQGNYnE8y2gGkkvkjDY2QNHzxZPwsUI0VmjuRsqcY ELHXPKqmxrdWJ2FoiuTIvMCGz7ktyBiazadJcgrZZ9C4EEFGiuULIs/xXEsvpI35HVtt XXmBigiplue9d0V0PY2HW0UNADW2VIfADQWlygFE9arT0LeSnxLMzwQu8bvvHmMTg4WH 5DGU+U4ZSllGg7hKmNSk2IkWYe+ijpPmrMaU7DcN2PHkQIevhfKJSU0eivHYH/1uL6dz 24cXULDdM06tZDr2qNMjUanwi7ZqlB2et20t9ve/++TjtTMdBvKPntFsiQFVXqzwX2qO kPSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=FoHK/ve8fn0r7S3rvrVc2zhZN2YcXHNlC/XwiRfGFas=; b=JpP8eUyBKN2D9hzjkIUXhk1yWjCrPEss/noMu1pFaIEjZCMjS7Gy0GOspLzMXFcKsa Qs/jV9ybHDWHaw19G7wat+EVKbf2FKMKiVQ+AH1DC8RIaHgYsDY99szm/uF0WYKOBJaG QUNnqORVDmGwGVxMfTr6YoqPo+LI56R3x6EB90uwxXsgp48VoY1es2xKe7M+SEX6NaB8 3o4W0F5Nv7YEbPnrPqOox2mdGoanoQ5DjuUVW2Y4cg4MYmOu+vkSoxwGkHm+wjUn2IwZ Vdn69SsyrqhAh6zFdqb/EJ3w1m/b8nGDkNw6ClNVD9ldJ3UPpYg3oh1ZFuMzZALWSWBz FtEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=jR+Pg56z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n9-20020a170902e54900b001ac8681c392si403787plf.369.2023.05.17.21.48.18; Wed, 17 May 2023 21:48:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=jR+Pg56z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229596AbjEREiP (ORCPT + 99 others); Thu, 18 May 2023 00:38:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjEREiO (ORCPT ); Thu, 18 May 2023 00:38:14 -0400 Received: from smtp-relay-canonical-1.canonical.com (smtp-relay-canonical-1.canonical.com [185.125.188.121]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F277A19BE; Wed, 17 May 2023 21:38:12 -0700 (PDT) Received: from Phocidae.conference (42-72-4-222.emome-ip.hinet.net [42.72.4.222]) (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-1.canonical.com (Postfix) with ESMTPSA id 68693412F9; Thu, 18 May 2023 04:38:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1684384690; bh=FoHK/ve8fn0r7S3rvrVc2zhZN2YcXHNlC/XwiRfGFas=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=jR+Pg56zhIYdc8zsouhkvbMJRKD5z9brDo5LqeVa7UdaO23JzXjXLDqdEtG+hfTu8 2M4zBLvVU0ar62ESa46Qm09IqhD7c/7Dj/rOmWDQ4bOTtcAhXRT678gHlRgl8+j/f3 T7M/cp6b/OWja4dl7v9VZyi50owwy/bXKigLtCl6KQzwebSSAhOumvehqB5Dry4uq/ rfwc4GYbiYlmHcPkZEMrhmDp3e0L5fGtUnboB1CwHAZuMJUL3EC521wUnOD9J+QuvO IezMUpn1H1hh61gzLuRnIxXMTX4zq34Ae6IMVnCJYYbk3PtxFW/R77VP2vLJGuNb6s SY7JF5ZOdSYlA== From: Po-Hsu Lin To: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, netdev@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: [PATCHv3 net] selftests: fib_tests: mute cleanup error message Date: Thu, 18 May 2023 12:37:59 +0800 Message-Id: <20230518043759.28477-1-po-hsu.lin@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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. V3: resubmit due to missing netdev ML in V2 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 } -- 2.7.4