* [dts] [PATCH V1] tests/multiple_pthread:sort cores
@ 2021-09-16 15:57 Lewei Yang
0 siblings, 0 replies; only message in thread
From: Lewei Yang @ 2021-09-16 15:57 UTC (permalink / raw)
To: dts; +Cc: Yang Lewei
From: Yang Lewei <leweix.yang@intel.com>
Sort the cores by size to avoid using the main core to cause the test to fail
Signed-off-by: Lewei Yang <leweix.yang@intel.com>
---
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()
--
2.17.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-16 7:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-16 15:57 [dts] [PATCH V1] tests/multiple_pthread:sort cores Lewei Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).