Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1942497rwb; Fri, 28 Jul 2023 18:47:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlG9EQCQcqOitKdceePqQNY93DMRZdFnnOnHaJ7S5tAs3NapDrFPAwtQxvuvTlwreGBUFVFx X-Received: by 2002:a17:903:1cc:b0:1b8:5bca:8256 with SMTP id e12-20020a17090301cc00b001b85bca8256mr3247015plh.31.1690595230522; Fri, 28 Jul 2023 18:47:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690595230; cv=none; d=google.com; s=arc-20160816; b=UEAoKgmoqwjLvzbIVueqSDhFJoEB/wEWW297ywVBlTLTwITz6bItbOkuil2Rspv/MP 5N4WZqFg8DNLE7n5pDUtkISRWaE7+G0x/frQHaCHPXpLZDgmtEHOgZIYENzguhWhhIX3 9Skm9GiAgrZN5EWN6+IFDcDJqpVMsmEoxejJLASv3YO7Mt3WmvYz/w5pPA1w+Iu0KL9m +0PWIItoAQUs9qB/suKRT6WRsKz8XacMVCblkqQDBLUBCWHWOCatFH0/X7CJr0DsVByp gtMu49ilJXhxenI4GaYsE8FJqTWdp9c7JUiR8wypOcdec57FI5WT0zC7qGVldpI+tDkF dW4A== 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=HIeU+TWEJ9SHiH0PuMDlq+ijy5jWckAGkZXhCnVsnVY=; fh=FDBzUJHj4TrMNDDWXYa9PUptsiT3BbYP5VbEs1ROAUo=; b=kDbow/R/UkxICINbjkF2q0qZLlDjKybKahwB4C/fn/lNzNHQ9sGCUQ1YAPb/V+6T7Z iNceBRDUidsno5XQiH+LEQYmi4arE1iPcYouT4OJyAJaDy+qdvPleQLTb+XZgG1qdR24 Vi8KFUNDI5PvCliac6InXClUr3dllAw1nigcbyYFfjDGnzD+MuzbIr1Ng51pUzgBgJev PCw0qiYdRDbFy5VoTb4ognrjNuBktc+dzYjQ9MrJTy87cczTJjLbev3QtctDSjIwlOjh CpMPsMZTSM2PUPkKgzBS3EWXqlFvRQVPmozMeZqMV1g0B05hyVifA673Gor95zWpGNOl s8wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=WOgKTJT7; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p18-20020a170902e75200b001b83767e879si3961028plf.266.2023.07.28.18.46.58; Fri, 28 Jul 2023 18:47:10 -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=WOgKTJT7; 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 S233000AbjG2AYI (ORCPT + 99 others); Fri, 28 Jul 2023 20:24:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234826AbjG2AYG (ORCPT ); Fri, 28 Jul 2023 20:24:06 -0400 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5956C2719 for ; Fri, 28 Jul 2023 17:24:05 -0700 (PDT) Received: by mail-io1-xd2c.google.com with SMTP id ca18e2360f4ac-780c89d1998so36572039f.1 for ; Fri, 28 Jul 2023 17:24:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1690590244; x=1691195044; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=HIeU+TWEJ9SHiH0PuMDlq+ijy5jWckAGkZXhCnVsnVY=; b=WOgKTJT75jB4KqOF6kEnfq0vx2OflxgDsz+zH43o8dD+xHb4h3OFWUiB0EoxBuqsSz poQX4LS/5mBeGowuzSOicZJ+aoc8o7CPNY1dBd+pgAi4t1Z+u9wi0/CdyrIWzv+oTiu+ lTcIgyEZ8PKn3xtZbbvRkJmudW9J0CSq6LsaQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690590244; x=1691195044; 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=HIeU+TWEJ9SHiH0PuMDlq+ijy5jWckAGkZXhCnVsnVY=; b=ZqA4zxRbWyLzw9TUJ0t9ORCn9pJOSrprG4QvKZl1SDHnxHgGjiEzYloa9/BKE4GmVE 0D+CfcW3F4refXuUNgDF+BtjDXLfvxKxPrYlpMAA0C+lWC8qJFI53zageOd3SROm7tVj aCd/W8foBhsgapC+YQSYi1+QmyYanjbyWek84ifBMJd4zCqFygw0Wn4m2peWXRWBYjgh +XVCkLX8Fqs8kmvH7ZksRlcX4h9OmS/cbI0fNhqCUAd7aB6HQH64DKseRqntycU2TSxW Odp/xnHiyMIYWWEuVQafGaKxIQiJ/pQN91kYnwO/bMzx4Z5oYXLyjlZVK4AwzYEv6Nvp O5sQ== X-Gm-Message-State: ABy/qLZ87qljCNihL21NSo7nr/4CCGhD1dTQr+iAQTcFxS0XIgNhtesS 1o0XJQEJG0wZ5ZKwQNTTn6Bclg== X-Received: by 2002:a92:dc51:0:b0:346:1919:7cb1 with SMTP id x17-20020a92dc51000000b0034619197cb1mr788138ilq.2.1690590244776; Fri, 28 Jul 2023 17:24:04 -0700 (PDT) Received: from shuah-tx13.internal ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id k25-20020a02a719000000b0042b4437d857sm1460925jam.106.2023.07.28.17.24.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jul 2023 17:24:04 -0700 (PDT) From: Shuah Khan To: shuah@kernel.org, Liam.Howlett@oracle.com, anjali.k.kulkarni@oracle.com, kuba@kernel.org Cc: Shuah Khan , davem@davemloft.net, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH v2] selftests:connector: Fix input argument error paths to skip Date: Fri, 28 Jul 2023 18:24:03 -0600 Message-Id: <20230729002403.4278-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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- v2: Removed root check based on Anjali's review comments. Add netdev to RESEND tools/testing/selftests/connector/proc_filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } -- 2.39.2