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

Message ID 20230217104627.1999696-1-weix.ling@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] tests/vhost_virtio_pmd_interrupt: fix the code unuse issue |

Checks

Context Check Description
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-suite-test warning SKIPPED

Commit Message

Ling, WeiX Feb. 17, 2023, 10:46 a.m. UTC
  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@intel.com>
---
 tests/TestSuite_vhost_virtio_pmd_interrupt.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
  

Comments

Tu, Lijuan March 7, 2023, 3:22 a.m. UTC | #1
On Fri, 17 Feb 2023 18:46:27 +0800, Wei Ling <weix.ling@intel.com> wrote:
> 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@intel.com>


Applied, thanks
  

Patch

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):
         """