Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2512800pxb; Tue, 24 Aug 2021 00:27:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEiKs4Ln5ICWY6iAYmh2+Uh0zqDSXfQyGgp05iyGwx7b/wuA6jdHwbYwEbZB+mApv/wMEL X-Received: by 2002:a50:9b52:: with SMTP id a18mr41552627edj.165.1629790058311; Tue, 24 Aug 2021 00:27:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629790058; cv=none; d=google.com; s=arc-20160816; b=wT2484ER1i7Ztlwa6z+SL6C1ZVFj8mfXha1D3PjfjPezYJJw8LihM5d7T/GFR5ElC+ lKwBQ57xeM2OBi2+TF+kTv0Do6KGjMzYuE7M2pS859DJabSUvQnC6WmgKql61HZS3kEW dACOQ0Ndf/YNPSNrkYgqpHsrRymwpV/QOQ3TCTlsdaQKVBwzG4kiLZ5GNhF946/crsp3 9ZJN2PE1KgTcpGz/iK9lJ5wyG7eaEyu3Xj5x+FdGWWO6rALI/IeRbzYWJhp4yYg0YjB/ 28yaos4VuX4LCwvYGWnDsXfbQQcJHQ5gr8qqiYTjV41Zjm4JJ4jyw/21Knv7BvDc8BWL 0+zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=23+OLJAyGOsAQ21B6Kc7ZzhH18/xeF38azdp237++QU=; b=e0JYVz3IWOw56twmRmvUXzs2hNec6t3gHLwDG9Cfq263DM20Fj4PrNR6mL42jDsVNe KGaeD4VSn+A/nl7+z4ISh3IzUz7zaltwvOnLTQ+4FaBRTQIo6rjlpmC5vKChpEs4NQYC HehOgdyeIvd4Li/N9CnUD7gANNgdgz/DgFUPSmj17OigtDvRUWYl4tOmsSfjg/DFsyLN dAexylpDckJD/LVdtMvdxknqn3B2/R1iUVsBwEcVm1MnbyO3IydFlLdhRglpbTEFLBEx OhqNyVLte5xfshPnQdWn+geYPFPi4t3TOWR3bvrNevI6OMm/yTXaRu3kvlr5O39SWvGN P3vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=r6iyg76f; 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 s10si1735708edd.150.2021.08.24.00.27.15; Tue, 24 Aug 2021 00:27:38 -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; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=r6iyg76f; 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 S233436AbhHXHZP (ORCPT + 99 others); Tue, 24 Aug 2021 03:25:15 -0400 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:37557 "EHLO new2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234734AbhHXHZE (ORCPT ); Tue, 24 Aug 2021 03:25:04 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 3877E580582; Tue, 24 Aug 2021 03:24:18 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 24 Aug 2021 03:24:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=23+OLJ AyGOsAQ21B6Kc7ZzhH18/xeF38azdp237++QU=; b=r6iyg76fNVgj+2ix/dlYI5 dxqn1I0PFMnMWk09SljcaWCRtBrt4l7YNE3+IaDhwKYaZbkpIVMf5yM41W6+DhQO QVRC6Qc/T7EfWzMXZks0J00wUf+ZE9hZx+ytejmWinKE6/1qYMzkSff4IvjiGom/ YncRhB/H5zQwhBh0j1iOqeByRdbM6A8GfTEpSGMoN2+HnyOlVt2RdvAYS9cs+GAp pG+37kyZfBt2eDZGi8p8Fgp6SzG3+yQV5/zp8Ye+NdAKvsxhsqD+s9D+YSGj31fZ FbCnywLDGGyl4gwS35gxwmyt986Gm0wqnyqijQ/hZ0sPP9Ru4RGKP7cX0edu6RnQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddtiedguddukecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttd ertddttddvnecuhfhrohhmpefkughoucfutghhihhmmhgvlhcuoehiughoshgthhesihgu ohhstghhrdhorhhgqeenucggtffrrghtthgvrhhnpedtffekkeefudffveegueejffejhf etgfeuuefgvedtieehudeuueekhfduheelteenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehiughoshgthhesihguohhstghhrdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 24 Aug 2021 03:24:16 -0400 (EDT) Date: Tue, 24 Aug 2021 10:24:11 +0300 From: Ido Schimmel To: Po-Hsu Lin Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, skhan@linuxfoundation.org, petrm@nvidia.co, oleksandr.mazur@plvision.eu, idosch@nvidia.com, jiri@nvidia.com, nikolay@nvidia.com, gnault@redhat.com, simon.horman@netronome.com, baowen.zheng@corigine.com, danieller@nvidia.com Subject: Re: [PATCH] selftests/net: Use kselftest skip code for skipped tests Message-ID: References: <20210823085854.40216-1-po-hsu.lin@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210823085854.40216-1-po-hsu.lin@canonical.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 23, 2021 at 04:58:54PM +0800, Po-Hsu Lin wrote: > There are several test cases in the net directory are still using > exit 0 or exit 1 when they need to be skipped. Use kselftest > framework skip code instead so it can help us to distinguish the > return status. > > Criterion to filter out what should be fixed in net directory: > grep -r "exit [01]" -B1 | grep -i skip > > This change might cause some false-positives if people are running > these test scripts directly and only checking their return codes, > which will change from 0 to 4. However I think the impact should be > small as most of our scripts here are already using this skip code. > And there will be no such issue if running them with the kselftest > framework. > > Signed-off-by: Po-Hsu Lin Reviewed-by: Ido Schimmel Tested-by: Ido Schimmel