Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1614344rwd; Tue, 16 May 2023 21:36:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4pRDY6+7GWqACfqZYr58KU2cDChAP52zo5jJcdg6aMnhl+mQ/wrPvNfAOAR2JojJMXJASP X-Received: by 2002:a17:902:da92:b0:1ac:a887:d33c with SMTP id j18-20020a170902da9200b001aca887d33cmr32163737plx.69.1684298180436; Tue, 16 May 2023 21:36:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684298180; cv=none; d=google.com; s=arc-20160816; b=TdYR9Gk6Y97hIGlIG7og+wLTPiuAwV6R+UuWGEMVHJgKzP3NMDNF9lDQ4sop+q41Fn Sl2xYawwPO2tRgfxnO9Y5kdGXSwjVitnI7WuKI2tGwg2TNmlNyO+vnx32G9fHbTC/XvK vVZGsMziEH8CYzwNiohz08nhZplTlBmglviD/Jr83v6C5HerNgpPhdXTXmhoMOlBA/Eu KKNEHMqj8TNLUTsWrskMFkGdn3hObOxM1zpqQI2ewAwUaTat2bD66rlFJ5blj9mJiDh+ T114PLUpemjUDiHU5muaie8YQGzdIztm+eFIJrT+Q9Csgsrouhh/s+6NSTXiNpEyrDib fqXw== 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=uKNing954xz7FQw7FvKS/pI3qCFzr7vWKfumoDuRopI=; b=ONocIMX4LT40k0IiPUz/zGZoQttX/S5gq+/LZ4BTqi4r0SHBUrEunfddd1SrekrTbb ZM+AA4/qK5stE30RCExZyDmZu88OON5l5P7JhBBTM32IpB0mL8r4zm4RMAUnPWzCTvia uWE7XubLJ9qiMBRF4l2NrR1XHZo3uhdbkI2skUzCCMzhUCs3sbpM59xYzAy/3ZuI5bIO DzLzeV05PLAFkq30dTB+G2xWwufJ4MjZH8gNxfr9II2fTJm6UTs+hfaA1qVY0o9sypCH oGR0zMcoidCkw11OKcY5ZznmKZp0N2XS/7/Si8qi8NsrV490f9s2KJSd622NyFt1vXKu uOeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=kjcenEif; 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 m9-20020a170902db0900b001aaf4d2eef6si22022462plx.370.2023.05.16.21.36.08; Tue, 16 May 2023 21:36:20 -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=kjcenEif; 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 S231835AbjEQELp (ORCPT + 99 others); Wed, 17 May 2023 00:11:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbjEQELn (ORCPT ); Wed, 17 May 2023 00:11:43 -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 CC03DE77; Tue, 16 May 2023 21:11:41 -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-1.canonical.com (Postfix) with ESMTPSA id 7532F4026B; Wed, 17 May 2023 04:11:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1684296699; bh=uKNing954xz7FQw7FvKS/pI3qCFzr7vWKfumoDuRopI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=kjcenEifqc63vTT9gXN5ixSp9+ueUVddiUV3UxkPaE42AOUVBC+7jC63I31iVkZC4 R5rrxq/Jc2Hle46v30dOuornMdcL1NCCU2fcQT1uSWD+b7WcLq+v3eYyiUhjgPAl8P dDd562+EoGsznrb8d/LjgpkDmaADdw1j32FLqm5scYqerVfwysTBVu+QqszU3e2t8i VKqwpgVBerCnaw5a3xd8YQBudXS0Y6uJtDmu92FikmuH8VTtG6kKDAI1F/RslBhRBM pq6PF5+utJPlNUePKtKhrhkcrIydDCEhAhTrTMZqghk6Kkqvm5hQULcnhO1mMF44mL 64HqJqQ918rZA== 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, dsahern@gmail.com, shuah@kernel.org, pabeni@redhat.com, kuba@kernel.org, edumazet@google.com, davem@davemloft.net Subject: [PATCH] selftests: fib_tests: mute cleanup error message Date: Wed, 17 May 2023 12:11:19 +0800 Message-Id: <20230517041119.202072-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,URIBL_BLOCKED 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 Redirect the error message to /dev/null to mute it. Fixes: a0e11da78f48 ("fib_tests: Add tests for metrics on routes") 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