Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2074310ybh; Tue, 14 Jul 2020 15:08:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsc9vhISOmTOQeEX6z6ZlLYMx5TDp1BCEai0XmFAsKPsGTw8RrtMEUseJEpIrHNYPbwFDB X-Received: by 2002:a17:906:538a:: with SMTP id g10mr6905910ejo.354.1594764538016; Tue, 14 Jul 2020 15:08:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594764538; cv=none; d=google.com; s=arc-20160816; b=UxcaEsnoQUJZB4llCh0q9QqxQTVDbNA4XA6wA173+OCGZ1Lc1kkiOq3H3VXdM9TRJa MdSSOgwpxjrHeDKK9UCJGhvQSD+DQ8fHUhLA5uVvqBzfCahrHHyaPOsVK9X88DkJAH7q 2CDL/AG6dOXZfCNniHnVFr6KlCNLyQ9SYYRaN+cPRpXh5z8aftUizC7yXj/R7FckIoEc gBW3nSpix19uV6KBU+L2o2coZhnWDcOwHEQQwCHLvEYI/TqEoFj/8pVIpRyNArqk5vkZ +g/EFHcqAaQUAPizmmCBnG8pFt8NntZQ1zNIFt5dFyZfeC50es5cISc6BQMJAR9+i+xq Uzeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=BLYTMePg/hwBiVFwBxMVt+qfvLu6xQBkDRrS7uRDkaU=; b=KmdeRXTDYDkgAejiebZmtc9C3a+V31jLWqYT4mNZuksQ+id12TMMsGhfCu+xZNvcXZ uGkDq+o4EHAH+oFT3I9pQM9F37znci86RVweE+YUrQ3F2yWrsyDsjuwKEPE1zDiqsx5y Q+Vq812MtH7ohZlSXCv/f1b/hMWsjCx9CrRg1d7axuN3zQpoCM4cATX504mFgvdBiSSX G7aWxIwVM2PAXvpwzBJ/vmU5pDoJD56R9y2hvTacgA3agM5Ae177Zc4o+bun4919SIJ3 EpjjDyGXXyCZYszDBp1AbHfEDK2cUoEtpPZeVAWz3usBlzxHceHS4MN0B7pQBjFgpeld +HNw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds15si72312ejc.70.2020.07.14.15.08.34; Tue, 14 Jul 2020 15:08:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728390AbgGNWG2 (ORCPT + 99 others); Tue, 14 Jul 2020 18:06:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728271AbgGNWG1 (ORCPT ); Tue, 14 Jul 2020 18:06:27 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63B47C061755; Tue, 14 Jul 2020 15:06:27 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id E311315E52DAD; Tue, 14 Jul 2020 15:06:26 -0700 (PDT) Date: Tue, 14 Jul 2020 15:06:26 -0700 (PDT) Message-Id: <20200714.150626.477183558154470216.davem@davemloft.net> To: paolo.pisati@canonical.com Cc: kuba@kernel.org, shuah@kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] selftests: fib_nexthop_multiprefix: fix cleanup() netns deletion From: David Miller In-Reply-To: <20200714154055.68167-1-paolo.pisati@canonical.com> References: <20200714154055.68167-1-paolo.pisati@canonical.com> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 14 Jul 2020 15:06:27 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Paolo Pisati Date: Tue, 14 Jul 2020 17:40:55 +0200 > During setup(): > ... > for ns in h0 r1 h1 h2 h3 > do > create_ns ${ns} > done > ... > > while in cleanup(): > ... > for n in h1 r1 h2 h3 h4 > do > ip netns del ${n} 2>/dev/null > done > ... > > and after removing the stderr redirection in cleanup(): > > $ sudo ./fib_nexthop_multiprefix.sh > ... > TEST: IPv4: host 0 to host 3, mtu 1400 [ OK ] > TEST: IPv6: host 0 to host 3, mtu 1400 [ OK ] > Cannot remove namespace file "/run/netns/h4": No such file or directory > $ echo $? > 1 > > and a non-zero return code, make kselftests fail (even if the test > itself is fine): > > ... > not ok 34 selftests: net: fib_nexthop_multiprefix.sh # exit=1 > ... > > Signed-off-by: Paolo Pisati Applied, thank you.