test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V2] tests/multiple_pthread:sort cores
@ 2021-09-16 17:51 Lewei Yang
  2021-09-27  6:14 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: Lewei Yang @ 2021-09-16 17:51 UTC (permalink / raw)
  To: dts; +Cc: Lewei Yang

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

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH V2] tests/multiple_pthread:sort cores
  2021-09-16 17:51 [dts] [PATCH V2] tests/multiple_pthread:sort cores Lewei Yang
@ 2021-09-27  6:14 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2021-09-27  6:14 UTC (permalink / raw)
  To: Yang, LeweiX, dts; +Cc: Yang, LeweiX

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-27  6:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-16 17:51 [dts] [PATCH V2] tests/multiple_pthread:sort cores Lewei Yang
2021-09-27  6:14 ` Tu, Lijuan

test suite reviews and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git