[dts] [PATCH V1] tests/vhost_virtio_pmd_interrupt:optimize code

Haiyang Zhao haiyangx.zhao at intel.com
Tue Feb 18 05:22:46 CET 2020


*.In some test env, the function get_core_list return cores 
  not as much as we expected, so use all.

Signed-off-by: Haiyang Zhao <haiyangx.zhao at intel.com>
---
 tests/TestSuite_vhost_virtio_pmd_interrupt.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/TestSuite_vhost_virtio_pmd_interrupt.py b/tests/TestSuite_vhost_virtio_pmd_interrupt.py
index 6a76bb2..bf97a91 100644
--- a/tests/TestSuite_vhost_virtio_pmd_interrupt.py
+++ b/tests/TestSuite_vhost_virtio_pmd_interrupt.py
@@ -91,7 +91,7 @@ class TestVhostVirtioPmdInterrupt(TestCase):
         self.verify(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(core_config,
+        self.core_list = self.dut.get_core_list('all',
                                     socket=self.ports_socket)
 
     def prepare_vm_env(self):
-- 
2.17.1



More information about the dts mailing list