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 E422CA00C4; Thu, 30 Jun 2022 19:34:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DD5BD4069D; Thu, 30 Jun 2022 19:34:54 +0200 (CEST) Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by mails.dpdk.org (Postfix) with ESMTP id AE5B940694 for ; Thu, 30 Jun 2022 19:34:52 +0200 (CEST) Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 25UGJsP7023643 for ; Thu, 30 Jun 2022 17:34:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=z454JJF4sap/Uj6Es6G2OE1XBrP7563PJCCPXFknPqk=; b=Bz5BJHp+e4ZHslKysIlPixpTgu7drjHbjlJQrGYIAtcUiCYqw5nedwGb0Uer7t+SE4sl AZK+TIPoTs9/LthJjqQdIFtlwwEwpdlvm0RY4GQzN+HYE6CC7xVbU9CW1BGTljnmjF+Y R03fJEybxLL92zC1SbvTm9vd+Dirno05/OCWBiOMu4xOtw3upYNpquhwc0hCePR9ggFa zu6/BjTdgiuOsg80TgHSCI7+sg8uANSNemGQfJtDdsoQ9MWKRvvW/zOGfNIVehq6XOWC dKit2Ij9CtZF7AdtudmgEsxSWUY8ifTt5T+/r/gDsoeChTomGMT0Ew3HBWpXzppQUWQO 9w== Received: from ppma04wdc.us.ibm.com (1a.90.2fa9.ip4.static.sl-reverse.com [169.47.144.26]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3h1f8r26gj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 30 Jun 2022 17:34:51 +0000 Received: from pps.filterd (ppma04wdc.us.ibm.com [127.0.0.1]) by ppma04wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 25UHLJ8Q003065 for ; Thu, 30 Jun 2022 17:34:50 GMT Received: from b03cxnp08025.gho.boulder.ibm.com (b03cxnp08025.gho.boulder.ibm.com [9.17.130.17]) by ppma04wdc.us.ibm.com with ESMTP id 3gwt0acfp1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 30 Jun 2022 17:34:50 +0000 Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp08025.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 25UHYn9f32178466 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 30 Jun 2022 17:34:49 GMT Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 558ED6A051; Thu, 30 Jun 2022 17:34:49 +0000 (GMT) Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 144B76A04D; Thu, 30 Jun 2022 17:34:49 +0000 (GMT) Received: from linux.vnet.ibm.com (unknown [9.114.219.126]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTP; Thu, 30 Jun 2022 17:34:48 +0000 (GMT) From: Thinh Tran To: dts@dpdk.org Cc: Thinh Tran Subject: [dts][PATCH] tests/coremask: fix all_core size Date: Thu, 30 Jun 2022 17:34:45 +0000 Message-Id: <20220630173445.3751472-1-thinhtr@linux.vnet.ibm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 5wL0POm0pgu03QdqXz-Sa5FN7E9cti9A X-Proofpoint-ORIG-GUID: 5wL0POm0pgu03QdqXz-Sa5FN7E9cti9A X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-06-30_12,2022-06-28_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 suspectscore=0 mlxlogscore=721 spamscore=0 phishscore=0 priorityscore=1501 clxscore=1011 adultscore=0 mlxscore=0 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2206300069 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org My system has 16 lcores, due to adding one (+1) to the length of all_cores[] make the calculation of big_coremask wrong and cause test to fail. Signed-off-by: Thinh Tran --- tests/TestSuite_coremask.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_coremask.py b/tests/TestSuite_coremask.py index db809cf3..8308f93c 100644 --- a/tests/TestSuite_coremask.py +++ b/tests/TestSuite_coremask.py @@ -82,9 +82,9 @@ class TestCoremask(TestCase): config_max_lcore = self.dut.get_def_rte_config('CONFIG_RTE_MAX_LCORE') if config_max_lcore: - available_max_lcore = min(int(config_max_lcore), len(self.all_cores) + 1) + available_max_lcore = min(int(config_max_lcore), len(self.all_cores)) else: - available_max_lcore = len(self.all_cores) + 1 + available_max_lcore = len(self.all_cores) return available_max_lcore @@ -151,6 +151,7 @@ class TestCoremask(TestCase): big_coremask = "0x" for _ in range(0, big_coremask_size, 4): big_coremask += "f" + command = command_line % (self.app_test_path, big_coremask, self.mem_channel) try: out = self.dut.send_expect(command, "RTE>>", 10) -- 2.25.1