Message ID | 20230728225357.5040-1-skhan@linuxfoundation.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp749275vqg; Fri, 28 Jul 2023 16:32:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlEjDDWaJLzm0pGMuinwgQwbKErA/Y66Uo+lEllhiOdBwOZQycke2q+moV2qe1uo0lDovIdR X-Received: by 2002:a05:6a00:a0f:b0:658:cbf1:d05a with SMTP id p15-20020a056a000a0f00b00658cbf1d05amr3631753pfh.3.1690587154422; Fri, 28 Jul 2023 16:32:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690587154; cv=none; d=google.com; s=arc-20160816; b=q40MCXty88FvHenOkrZd0BE8L6UgA/BKELswdKcmtcZjaSj9MVmMC+KA2Jh/g+4mb8 D37TQQhnGxNRYKgVHkrftGpYuj9iCEpljtK2MRgSk3JQugWcD2mLIU4vuy0KJacJ1uYA vQZWezYWOM0sXRXXX+yyt3+FUWeTgobTi4+ewrftNpLTcb/F0A0VWkmyn5q910InVyFm wvZU8EUENoWTtE3t6ktC40O+hFbzIlbkeqVmuZoV/T5VCzVKCsjT/ZgAE+FrBuxsniua ScJC2vrQCF50k2WB+ztzyI1ukS6FpQw6i1PDKLdzsFFYGuPNSOQpx+RZECSoXu4ZCiEn wvAQ== 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=gd1qe4QbPmGfO+Bk3+XG73JXlXmRvH7reO6CZtVAH5Q=; fh=l/oUealUa4VFJ0aIVGOctW3sF8GPVBNsFSkLI4WH5kA=; b=TO/esS0xKNvs3HCj26PQbLjlw2HO2YKmZEfVNebuBu+TFXy9OjP3gs2U4QXupge4yp JmpqY8UMW0E/IOGOrb+XR/ungq4+7eZvq/Hd1yJBsHoJOZF5Jt5OARbTeNl1t34GuWBp y/eTVTtl8Ai+72rjs2vg3zkHtrnlIHsnu8z6RrFlDK9Tu4XhbBBN/x3m98Px0yNCFdlJ SxZWDyZLm+QkYDwSqxkpAiBQjfyPJtOQ2Wx9OGjycQ0c5IfKN3q10Dmbh6IHayN0QOoT /TVDfkuG1Pvm2fpt+oxzdpJS5i80GFi6FPKhpjdhxugTdMCy5IKO992gLxGWFa/iaG/y mTQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=aAHrOOZt; 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=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q12-20020a056a00084c00b0067f750aa3f7si3893263pfk.257.2023.07.28.16.32.21; Fri, 28 Jul 2023 16:32: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=@linuxfoundation.org header.s=google header.b=aAHrOOZt; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234114AbjG1WyC (ORCPT <rfc822;hanasaki@gmail.com> + 99 others); Fri, 28 Jul 2023 18:54:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbjG1WyA (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 28 Jul 2023 18:54:00 -0400 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBB7F3C34 for <linux-kernel@vger.kernel.org>; Fri, 28 Jul 2023 15:53:59 -0700 (PDT) Received: by mail-io1-xd36.google.com with SMTP id ca18e2360f4ac-785d3a53ed6so29941739f.1 for <linux-kernel@vger.kernel.org>; Fri, 28 Jul 2023 15:53:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1690584839; x=1691189639; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gd1qe4QbPmGfO+Bk3+XG73JXlXmRvH7reO6CZtVAH5Q=; b=aAHrOOZtX4YkS5dDp6i00RVInJ/V8YYEPGFes6bIW0Fsm8zR37E2cKe1vRa68XDYXg eCLVnUvhRgoDKMWfuMZVUWXV5mhfMGrzT0x+os1CCmpB6QKV6vXiyDHyJHi8WZYmboqM OZ7g69zW0tivBmCTfqZtUTyD2S/GCx2bWvyFI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690584839; x=1691189639; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gd1qe4QbPmGfO+Bk3+XG73JXlXmRvH7reO6CZtVAH5Q=; b=U1IfcqzFEKo6R8TKep07uW9T7aEfC1w7ErcZI0zbmV1pYcxvV/UePaPg+/RuARri0S fv5Umc59MXYETUsN1ljGgQ8HEi/Uz4jLEpUMPGwzh4dwRj98rb6uKlAnbsGynzoqjsbN id0ftaVDBIFeItkhyBA3TP6XHAiA0H6QtG6T1N4zzPfT9ILbx5pPASGxVlw0cuBJYTKV dqIB4LMHfRBU0XaBO7p+1r9ns9pUseDnnr7nOlxE0d+ztNwdScB+HsxtIZGIxThlcAKf Aa6txLlPnE5tacEKkSxBq/XlRwMPNyG/iOZPQIP81rzPIbWaXpx4DSpRc4cYvA2d+fRU 4FjA== X-Gm-Message-State: ABy/qLaDXpCJWgb+Ecr2WiJsAvWx0KzQRcr6/z7mhuk42lHcSnDlju5/ fiz0n0sJzYqDu5S1hwFO4l3mfQfJebb49JCDbxaW+Q== X-Received: by 2002:a05:6602:3d5:b0:780:d65c:d78f with SMTP id g21-20020a05660203d500b00780d65cd78fmr1413820iov.2.1690584839167; Fri, 28 Jul 2023 15:53:59 -0700 (PDT) Received: from shuah-tx13.internal ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id i7-20020a02cc47000000b0042b0ce92dddsm1390337jaq.161.2023.07.28.15.53.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jul 2023 15:53:58 -0700 (PDT) From: Shuah Khan <skhan@linuxfoundation.org> To: shuah@kernel.org, Liam.Howlett@oracle.com, anjali.k.kulkarni@oracle.com, kuba@kernel.org Cc: Shuah Khan <skhan@linuxfoundation.org>, davem@davemloft.net, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] selftests:connector: Fix input argument error paths to skip Date: Fri, 28 Jul 2023 16:53:57 -0600 Message-Id: <20230728225357.5040-1-skhan@linuxfoundation.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772709115883285267 X-GMAIL-MSGID: 1772709115883285267 |
Series |
[v2] selftests:connector: Fix input argument error paths to skip
|
|
Commit Message
Shuah Khan
July 28, 2023, 10:53 p.m. UTC
Fix input argument parsing paths to skip from their error legs.
This fix helps to avoid false test failure reports without running
the test.
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
---
v2: Removed root check based on Anjali's review comments.
tools/testing/selftests/connector/proc_filter.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On Fri, 28 Jul 2023 16:53:57 -0600 Shuah Khan wrote: > Fix input argument parsing paths to skip from their error legs. > This fix helps to avoid false test failure reports without running > the test. > > Signed-off-by: Shuah Khan <skhan@linuxfoundation.org> netdev was not CCed on this or patch 3 of the previous series :S Which is a bit odd 'cause it was CCed on patches 1 and 2 🤷️
On 7/28/23 17:21, Jakub Kicinski wrote: > On Fri, 28 Jul 2023 16:53:57 -0600 Shuah Khan wrote: >> Fix input argument parsing paths to skip from their error legs. >> This fix helps to avoid false test failure reports without running >> the test. >> >> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org> > > netdev was not CCed on this or patch 3 of the previous series :S > Which is a bit odd 'cause it was CCed on patches 1 and 2 🤷️ Odd. get_maintainers.pl didn't give me netdev. I added netdev and others to the first patch from the bug report. Would you like me to resend this with netdev on the cc? thanks, -- Shuah
On Fri, 28 Jul 2023 17:58:01 -0600 Shuah Khan wrote: > > netdev was not CCed on this or patch 3 of the previous series :S > > Which is a bit odd 'cause it was CCed on patches 1 and 2 🤷️ > > Odd. get_maintainers.pl didn't give me netdev. I added netdev > and others to the first patch from the bug report. > > Would you like me to resend this with netdev on the cc? If you don't mind that'd be quite helpful, all our local tooling depends on the patch being in netdev's patchwork.
On 7/28/23 18:05, Jakub Kicinski wrote: > On Fri, 28 Jul 2023 17:58:01 -0600 Shuah Khan wrote: >>> netdev was not CCed on this or patch 3 of the previous series :S >>> Which is a bit odd 'cause it was CCed on patches 1 and 2 🤷️ >> >> Odd. get_maintainers.pl didn't give me netdev. I added netdev >> and others to the first patch from the bug report. >> >> Would you like me to resend this with netdev on the cc? > > If you don't mind that'd be quite helpful, all our local tooling > depends on the patch being in netdev's patchwork. I understand - same case with kselftest patches. I rely on them going kselftest patchwork. Resent the patch. thanks, -- Shuah
diff --git a/tools/testing/selftests/connector/proc_filter.c b/tools/testing/selftests/connector/proc_filter.c index 4fe8c6763fd8..4a825b997666 100644 --- a/tools/testing/selftests/connector/proc_filter.c +++ b/tools/testing/selftests/connector/proc_filter.c @@ -248,7 +248,7 @@ int main(int argc, char *argv[]) if (argc > 2) { printf("Expected 0(assume no-filter) or 1 argument(-f)\n"); - exit(1); + exit(KSFT_SKIP); } if (argc == 2) { @@ -256,7 +256,7 @@ int main(int argc, char *argv[]) filter = 1; } else { printf("Valid option : -f (for filter feature)\n"); - exit(1); + exit(KSFT_SKIP); } }