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 8B7C5A0C41; Thu, 16 Sep 2021 11:21:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4D0ED4069E; Thu, 16 Sep 2021 11:21:19 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 463094003F for ; Thu, 16 Sep 2021 11:21:18 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10108"; a="219337823" X-IronPort-AV: E=Sophos;i="5.85,298,1624345200"; d="scan'208";a="219337823" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2021 02:21:17 -0700 X-IronPort-AV: E=Sophos;i="5.85,298,1624345200"; d="scan'208";a="545453728" 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 02:21:15 -0700 From: Lewei Yang To: dts@dpdk.org Cc: Lewei Yang Date: Thu, 16 Sep 2021 17:51:31 +0000 Message-Id: <20210916175131.28549-1-leweix.yang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V2] 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" Sort the cores by size to avoid using the main core 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 8d9dc3f..091e95b 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() -- 2.17.1