From patchwork Thu Sep 16 15:57:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lewei Yang X-Patchwork-Id: 98997 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 33831A0C41; Thu, 16 Sep 2021 09:27:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F14E14003E; Thu, 16 Sep 2021 09:27:26 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 2D9F74003C for ; Thu, 16 Sep 2021 09:27:24 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10108"; a="220621989" X-IronPort-AV: E=Sophos;i="5.85,297,1624345200"; d="scan'208";a="220621989" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2021 00:27:23 -0700 X-IronPort-AV: E=Sophos;i="5.85,297,1624345200"; d="scan'208";a="545415414" Received: from unknown (HELO DPDK-CVL-tetser102.icx.intel.com) ([10.240.183.102]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2021 00:27:22 -0700 From: Lewei Yang To: dts@dpdk.org Cc: Yang Lewei Date: Thu, 16 Sep 2021 15:57:38 +0000 Message-Id: <20210916155738.26311-1-leweix.yang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/multiple_pthread:sort cores 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 Sender: "dts" From: Yang Lewei Sort the cores by size to avoid using the main core to cause the test to fail Signed-off-by: Lewei Yang --- tests/TestSuite_multiple_pthread.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/TestSuite_multiple_pthread.py b/tests/TestSuite_multiple_pthread.py index 8d9dc3f7..091e95b0 100644 --- a/tests/TestSuite_multiple_pthread.py +++ b/tests/TestSuite_multiple_pthread.py @@ -54,6 +54,7 @@ class TestMultiplePthread(TestCase): # get socket and cores self.socket = self.dut.get_numa_id(self.dut_ports[0]) self.cores = self.dut.get_core_list("1S/8C/1T", socket=self.socket) + self.cores.sort(key=lambda i: int(i)) self.verify(self.cores is not None, "Requested 8 cores failed") self.out_view = {'header': [], 'data': []} self.path=self.dut.apps_name["test-pmd"].rstrip()