diff mbox series

[V2] tests/multiple_pthread:sort cores

Message ID 20210916175131.28549-1-leweix.yang@intel.com (mailing list archive)
State Accepted
Headers show
Series [V2] tests/multiple_pthread:sort cores | expand

Checks

Context Check Description
ci/Intel-suite-dts-test success Testing OK

Commit Message

Lewei Yang Sept. 16, 2021, 5:51 p.m. UTC
Sort the cores by size to avoid using the main core

Signed-off-by: Lewei Yang <leweix.yang@intel.com>
---
 tests/TestSuite_multiple_pthread.py | 1 +
 1 file changed, 1 insertion(+)

Comments

Tu, Lijuan Sept. 27, 2021, 6:14 a.m. UTC | #1
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Lewei Yang
> Sent: 2021年9月17日 1:52
> To: dts@dpdk.org
> Cc: Yang, LeweiX <leweix.yang@intel.com>
> Subject: [dts] [PATCH V2] tests/multiple_pthread:sort cores
> 
> Sort the cores by size to avoid using the main core
> 
> Signed-off-by: Lewei Yang <leweix.yang@intel.com>

Applied
diff mbox series

Patch

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()