[dts][PATCH V1] tests/vhost_virtio_pmd_interrupt: fix the code unuse issue

Wei Ling weix.ling at intel.com
Fri Feb 17 11:46:27 CET 2023


Fix the code unuse issue, if unuse the core_config parameter,
it will use all the cores of the socket.

Signed-off-by: Wei Ling <weix.ling at intel.com>
---
 tests/TestSuite_vhost_virtio_pmd_interrupt.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_vhost_virtio_pmd_interrupt.py b/tests/TestSuite_vhost_virtio_pmd_interrupt.py
index a1f3e8dd..dd7ff491 100644
--- a/tests/TestSuite_vhost_virtio_pmd_interrupt.py
+++ b/tests/TestSuite_vhost_virtio_pmd_interrupt.py
@@ -70,7 +70,9 @@ class TestVhostVirtioPmdInterrupt(TestCase):
             self.cores_num >= (self.nb_cores + 1),
             "There has not enough cores to running case: %s" % self.running_case,
         )
-        self.core_list = self.dut.get_core_list("all", socket=self.ports_socket)
+        self.core_list = self.dut.get_core_list(
+            config=core_config, socket=self.ports_socket
+        )
 
     def prepare_vm_env(self):
         """
-- 
2.25.1



More information about the dts mailing list