Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3122045rwb; Mon, 15 Aug 2022 18:40:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Fnyk1Q0pRz1JM1w2Pcoxb3Ydc6+cnFBg4Tbqwui2/a2Wo6/ZBiyRPE48sEiLs5nZaSOEP X-Received: by 2002:a17:907:6818:b0:730:825d:7296 with SMTP id qz24-20020a170907681800b00730825d7296mr12485066ejc.21.1660613999832; Mon, 15 Aug 2022 18:39:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660613999; cv=none; d=google.com; s=arc-20160816; b=DbCJ72O2WabaZ4EmEVMcsZWk8y4yELd3o104gM9dhlbpChMPCSDrtF/qJTI2/jBFAO +QAeApwic8xcYracBDZrEyW+Z689ZdGmCFQZ8KznmO0KDVgIpxoGF9ev4v3SdsvSkMJN f53tP8oKcv8z0kzs8UTotJNHsH2M+WRh211hxezpEVwRtzDyijxvEQh0tbB4vB1SPDUy YijUKJlHq9flQ6Y44HC0wzwSNw9y7zu3VT9gKcX8tVmVPUY1P/BUglL8DBSftH8nEr8w xCLLGjcaWdtwpL2hj/1dGSfU6xcs1WqI1PtF7/81jLsEWSXI6VCI2B64Zrfyw8d84iw1 2xDA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=EOYSKG3OnsQfgsa9LflSwmg88NWj5XtHcFIjdTS+GvM=; b=ruSTRIaXRFg16WV5+1ZSM5PQi7WNomKq8veTrrltfCGi0Fr3XFhUT4uUzb3i2cx6Pe AnuWXbuuaAXskokVB04Y0+SLih+2FTwqxLlv+WrI5PdnrO++cIUqDXvePSutUGsOgtky xsxU16SUTmf6CSXbsw9Vyk2DY1o5h422s+MhALhbO38acYxPEExeJXt8niyEpb6POzml 3Ki/bZnunlZ0TbSxLQVWBCmXxHJV0rwXNNwTJT26+xYPGf3KkV9LwGmAchQYXIj72GMb YGBdJAy7nnzVyk5dNr7jS3FGSRPKJ3q2y2oAPAeFXPxyqBirXjtFhtF7G3Jh5+/xGP+F p6YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gGCVphEe; 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 z26-20020aa7cf9a000000b0043cdb04b9f1si7228869edx.411.2022.08.15.18.39.34; Mon, 15 Aug 2022 18:39:59 -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=korg header.b=gGCVphEe; 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 S1353726AbiHOXrk (ORCPT + 99 others); Mon, 15 Aug 2022 19:47:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354355AbiHOXl6 (ORCPT ); Mon, 15 Aug 2022 19:41:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D171326D4; Mon, 15 Aug 2022 13:13:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A40F260F0C; Mon, 15 Aug 2022 20:13:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2793C433C1; Mon, 15 Aug 2022 20:13:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594394; bh=qEpQ0ORfio4GJ377cmHUYJ9BxN5FNFj0Pwgm6gFsi3w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gGCVphEezcamr4mUz1Ye2rBvO4lozTMQq9+vs8C/p2RgiFuwJfoJiEk0aEC2R6Oeo tqLg4mO6X9nyzFEu64MA51jT/OWG3FmXSSCnmMwVKlnh9a3X9P03EUD2tlpMKQ5Ytm Y1XKqn6t2XyJuSCOSTCD4S0jCKkGxCyZeb2eO4HU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alaa Mohamed , "David S. Miller" , Sasha Levin Subject: [PATCH 5.19 0431/1157] selftests: net: fib_rule_tests: fix support for running individual tests Date: Mon, 15 Aug 2022 19:56:27 +0200 Message-Id: <20220815180456.899438908@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Alaa Mohamed [ Upstream commit 9c154ab47f5e5ff632d2b7af6342c027d7e04b92 ] parsing and usage of -t got missed in the previous patch. this patch fixes it Fixes: 816cda9ae531 ("selftests: net: fib_rule_tests: add support to select a test to run") Signed-off-by: Alaa Mohamed Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- tools/testing/selftests/net/fib_rule_tests.sh | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/tools/testing/selftests/net/fib_rule_tests.sh b/tools/testing/selftests/net/fib_rule_tests.sh index bbe3b379927a..c245476fa29d 100755 --- a/tools/testing/selftests/net/fib_rule_tests.sh +++ b/tools/testing/selftests/net/fib_rule_tests.sh @@ -303,6 +303,29 @@ run_fibrule_tests() log_section "IPv6 fib rule" fib_rule6_test } +################################################################################ +# usage + +usage() +{ + cat < Test(s) to run (default: all) + (options: $TESTS) +EOF +} + +################################################################################ +# main + +while getopts ":t:h" opt; do + case $opt in + t) TESTS=$OPTARG;; + h) usage; exit 0;; + *) usage; exit 1;; + esac +done if [ "$(id -u)" -ne 0 ];then echo "SKIP: Need root privileges" -- 2.35.1