test suite reviews and discussions
 help / color / mirror / Atom feed
From: Lewei Yang <leweix.yang@intel.com>
To: dts@dpdk.org
Cc: Yang Lewei <leweix.yang@intel.com>
Subject: [dts] [PATCH V1] tests/multiple_pthread:sort cores
Date: Thu, 16 Sep 2021 15:57:38 +0000	[thread overview]
Message-ID: <20210916155738.26311-1-leweix.yang@intel.com> (raw)

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


                 reply	other threads:[~2021-09-16  7:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210916155738.26311-1-leweix.yang@intel.com \
    --to=leweix.yang@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).