From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BD2B3454E2; Mon, 24 Jun 2024 17:07:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BDFEC40ED2; Mon, 24 Jun 2024 17:07:14 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by mails.dpdk.org (Postfix) with ESMTP id 462E240616 for ; Mon, 24 Jun 2024 17:07:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719241631; x=1750777631; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=g7fA00aUXLNlfPlp3l/rHCK5Rhd5JVz2ac9L1JvScbA=; b=kowR3RO6lp0bItdr7PsiRbnycZvskvezEcvyl3O6yL/dl7lAbbndDf62 l6vD4+nbC1MBnkSEkRWOzpaGmlTg5UiK/u0gcfJcxv5M/Do/XU2ViCxK+ cARganx+chqsNuIbD8EJJ5RYYo1pULqSegw6peE1gwrDk9LTE6xWT64Ze n2SiNrt3BTahUJ2za52HyyIvQi380BAwninh7jJUN6pBEWZBRPYg6zPci hFp1qNz50tYYvIfIJg2k0TwhDgcuDaYPqxL5NBVeaAxAo4uT9QXiV7YGK h8sDOGTWQ/pS/6aiWhfI7HPEEBKtGi2Yymb3cTFEixbIrzxkGp4hx9CoV g==; X-CSE-ConnectionGUID: gXVWGgUlQoSP/2cO6HisrA== X-CSE-MsgGUID: wC6nklZ7SJW7AgJSUqp3Tg== X-IronPort-AV: E=McAfee;i="6700,10204,11113"; a="16042021" X-IronPort-AV: E=Sophos;i="6.08,262,1712646000"; d="scan'208";a="16042021" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2024 08:07:10 -0700 X-CSE-ConnectionGUID: YfW2gEHgTty4XMusxsI20g== X-CSE-MsgGUID: 8yoCivlUQcu7UhRUlHdqvg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,262,1712646000"; d="scan'208";a="44025859" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orviesa008.jf.intel.com with ESMTP; 24 Jun 2024 08:07:10 -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 v2 4/9] test/bbdev: change iter-max argument Date: Mon, 24 Jun 2024 08:02:32 -0700 Message-Id: <20240624150237.47169-5-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20240624150237.47169-1-hernan.vargas@intel.com> References: <20240624150237.47169-1-hernan.vargas@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Maxime Coquelin --- 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)]) -- 2.37.1