Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp67878pxb; Tue, 24 Aug 2021 20:23:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3lHrX5wabBy8nekMzRxgCR0H328/nJl1mLD8v2H+xJ9+Ku/WmhS1vivkYLt1oV11eHNZd X-Received: by 2002:a5d:9247:: with SMTP id e7mr15655276iol.161.1629861825501; Tue, 24 Aug 2021 20:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629861825; cv=none; d=google.com; s=arc-20160816; b=LEJ8EXb+DlsbhAU1xKC6bbc2qIj2IqrQBSaNelF/M1Ze1Cr8dt/MERqCMDRAgaKuWF 3/THnCXi0SzzNMN3H9l/76E6yOlk+hEOSF1jFwSU2qiDNYN/+OFkB0NiMZAoA0Ux+Q/r c45pMo9EOEsBWdMhCfT31oFr90oaK/8ErqA2rXGoBWBmUnvIH2xWyDxcFcrHNKB7kQF5 uDJKA4/bCWLY6q1SKetTDf9PiLeuUEgj2iFI3XaWNkpPlQzGbeyn36HmKJvbVEGN/JMq 0VRxZ7ewzyYrQ5wuqCXUkMJy+H/qYTQIaNf4UDEa2cqxKInBJX8rsr6dtTPOa1B0u8N+ EMaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=bubKe1V2wVnyhV9MMzcO3LsuU+2HkzzeQ/usUihXRL4=; b=lE5jhqM/v/cjGw1HG11p2CNydU74TsS4jKZrtK8cnebhcVVGXpsnJGkjn5Nj1WE0cM MEIKoxRVHJf94VjxxJoETMBOUPJlUTYLOVA/8Ykf+4o8AwupbceIZb82+9Jb1fvIE40D P1AlYm+tWGa+rN+tSfLZjiqhL3M2XtzsGNi6gt1VYL1tonNA36g3n5iYbo2acVzcRlE8 vw0ElPJekRzj1i+tY7eJlBd9QIZh1Hkt9NI0aUtz1xSfpt13MfeYErug0PwqARCx1mD/ 8rotwkKAUzoGDtUg9mQtvt5RkxPWjB4+YS+i66ilrXDn7eifUhaicsavoZerksiQ4491 8Hqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="pNK5/VUb"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r17si20317945ilo.3.2021.08.24.20.23.33; Tue, 24 Aug 2021 20:23:45 -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=@canonical.com header.s=20210705 header.b="pNK5/VUb"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237866AbhHYDWI (ORCPT + 99 others); Tue, 24 Aug 2021 23:22:08 -0400 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:45984 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230021AbhHYDWG (ORCPT ); Tue, 24 Aug 2021 23:22:06 -0400 Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) (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-internal-0.canonical.com (Postfix) with ESMTPS id 618F240795 for ; Wed, 25 Aug 2021 03:21:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1629861674; bh=bubKe1V2wVnyhV9MMzcO3LsuU+2HkzzeQ/usUihXRL4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=pNK5/VUbe8Zo5NVmRDNXnLvbxS6+TDoeocuhytiPuOPSTnH+EtAC+l4dMQ+6uBahA d6mgRGg6g0KzUhJsmyXt/+mi07hDCvElqnSYRgcuDDe/0F18G4jUKYeQxzHACrS0nm ItwPsP+cyOXbAJhd5bn22PB4mYrVwmO9gdW8wr3zpBmiWsNI0dX/oieLFDCeQonKoZ HZ17s66ylUNCu4JUbjdlRMQA+Mong1/e69m4IRUFhEpEsk0+dOm6KiEEA4AP8xPwgK 2e2TBROrye5c+F8TyYROZ7sIB8PtXrpzdxT+o061zpps6MIpHU0vIziYp3Pny9VHBh dGuoRmTCHy7Bw== Received: by mail-pj1-f69.google.com with SMTP id mm23-20020a17090b359700b00185945eae0eso3741145pjb.3 for ; Tue, 24 Aug 2021 20:21:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bubKe1V2wVnyhV9MMzcO3LsuU+2HkzzeQ/usUihXRL4=; b=li2tfhmjae9jdgrFKVi+x8Di362rp0WTSzkCR1j57w9fQzsUoILoNublVbA3fznLUr lKG2mJ5oe3CO7VkstYAAN+izyc7L1THh0gsuXBox+s9IE2ggiJeRvMTj3VimZpcvTMy4 zFkVn7QQ+yKhhOGCspwpWyQzqIy9wNk+EumS0+0+QgMZDof8uYjh0k2b7PahYVNRzBmt hUQWv1fh63NAXRfJ/xiMnkBnYuEuUm11esKg+o7aV0o5Tt5+UMKWKUIuzmjqYh9ae9zK KwLWYf6NU4twnURRRUbNsbMgFxzrSMz/mla0vZR3E2v5f6DYGjUcRCYv0Q5y0lUU4awc X52Q== X-Gm-Message-State: AOAM530ywUfLjgHWenvwaW2NRYeEho50JAmQA9IwMlWS2hTI3M4lJOeO deOkcHQY1pvgVPDWm0VKwvUHqkXLiLb0hWkt8qPSdjhG9A3qStpv7Dlmar54SosgnudRwYxa6LK 23NcOKYqpiWfthfb16Pm4oKuNyTS5zJYXmh2SozFmGPDnYUA+ERacX0Kl X-Received: by 2002:a65:494e:: with SMTP id q14mr40030645pgs.314.1629861672692; Tue, 24 Aug 2021 20:21:12 -0700 (PDT) X-Received: by 2002:a65:494e:: with SMTP id q14mr40030623pgs.314.1629861672376; Tue, 24 Aug 2021 20:21:12 -0700 (PDT) MIME-Version: 1.0 References: <20210823085854.40216-1-po-hsu.lin@canonical.com> In-Reply-To: From: Po-Hsu Lin Date: Wed, 25 Aug 2021 11:21:13 +0800 Message-ID: Subject: Re: [PATCH] selftests/net: Use kselftest skip code for skipped tests To: Ido Schimmel Cc: linux-kernel , linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, David Miller , Jakub Kicinski , Shuah Khan , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 24, 2021 at 3:24 PM Ido Schimmel wrote: > > 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 Thank you for the test and the review! PHLin