From patchwork Mon Apr 22 19:07:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hernan Vargas X-Patchwork-Id: 139631 X-Patchwork-Delegate: maxime.coquelin@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A52AF43EDD; Mon, 22 Apr 2024 21:12:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6324B4069F; Mon, 22 Apr 2024 21:11:40 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by mails.dpdk.org (Postfix) with ESMTP id E9FC640265 for ; Mon, 22 Apr 2024 21:11:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713813094; x=1745349094; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PW4nRZlAX0vZnhj3auU+EcBrV4aJtdh16HVKMCOiaHE=; b=gV1yJIrLssIoB87grPLuPK45xrLTo+Aum5sAx49V6jakiuaMhxa5BCi/ E+efuzerCE2myXwTfnwoDLKpicJkmF+Zayc3q2mlHI6v5jdi1Uia04K+x ObxxP8/KXdceaU3Wso5QRkXoqjJt044teicRmnvfTAoJSIGqEzq+vFpY7 FEmFXLxFdGVnMYh3B5PzVHuUgoJvYsnPGby6uOTSqqme8x2MzSf1MPC5l eMYJBm2RwvT0UiwAvBX9CP2gFJ3wpvZxaTSSu+n18hTDXbEEcoO8d27Z/ 4ZH26qEkSbtXZNboh3Sl76b+Kiiy07iTwN3dHeaWKLNt5VupADSYx0h86 A==; X-CSE-ConnectionGUID: +/QghQ1uT+O1tU/QAH58aA== X-CSE-MsgGUID: MZLH5l+pTkKUaEdGqlYKsg== X-IronPort-AV: E=McAfee;i="6600,9927,11052"; a="19922805" X-IronPort-AV: E=Sophos;i="6.07,221,1708416000"; d="scan'208";a="19922805" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2024 12:11:34 -0700 X-CSE-ConnectionGUID: 99xuzSHYTZqhgLKdGhFWVw== X-CSE-MsgGUID: R1iH5llFQfyxh86V92K2hg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,221,1708416000"; d="scan'208";a="24555960" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orviesa006.jf.intel.com with ESMTP; 22 Apr 2024 12:11:33 -0700 From: Hernan Vargas To: dev@dpdk.org, gakhil@marvell.com, trix@redhat.com, maxime.coquelin@redhat.com Cc: nicolas.chautru@intel.com, qi.z.zhang@intel.com, Hernan Vargas Subject: [PATCH v1 4/9] test/bbdev: change iter-max argument Date: Mon, 22 Apr 2024 12:07:55 -0700 Message-Id: <20240422190800.123027-5-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20240422190800.123027-1-hernan.vargas@intel.com> References: <20240422190800.123027-1-hernan.vargas@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org -t --iter-max used for max number of iterations. -T --timeout used for test timeout value. Signed-off-by: Hernan Vargas --- app/test-bbdev/test-bbdev.py | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/app/test-bbdev/test-bbdev.py b/app/test-bbdev/test-bbdev.py index 65a34390548d..9ddca9e78d3b 100755 --- a/app/test-bbdev/test-bbdev.py +++ b/app/test-bbdev/test-bbdev.py @@ -27,16 +27,10 @@ def kill(process): parser.add_argument("-e", "--eal-params", help="EAL arguments which must be passed to the test app", default="--vdev=baseband_null0 -a00:00.0") -# Until deprecated in next release keep -t as an valid argument for timeout, then use -T -parser.add_argument("-t", "--timeout", +parser.add_argument("-T", "--timeout", type=int, help="Timeout in seconds", default=600) -# This will become -t option for iter_max in next release -parser.add_argument("--iter-max", - type=int, - help="Max iterations", - default=6) parser.add_argument("-c", "--test-cases", nargs="+", help="Defines test cases to run. Run all if not specified") @@ -58,6 +52,10 @@ def kill(process): type=int, help="SNR in dB for BLER tests", default=0) +parser.add_argument("-t", "--iter-max", + type=int, + help="Max iterations", + default=6) parser.add_argument("-l", "--num-lcores", type=int, help="Number of lcores to run.", @@ -83,10 +81,6 @@ def kill(process): if args.iter_max: params.extend(["-t", str(args.iter_max)]) - print("The argument for iter_max will be -t in next release") - -if args.timeout: - print("The argument for timeout will be -T in next release") if args.num_ops: params.extend(["-n", str(args.num_ops)])