test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V1] tests/vm2vm_virtio_net_perf_dsa: modify testsuite by tests/virtio_common.py have changed
@ 2023-06-08  2:13 Wei Ling
  2023-06-14  1:31 ` lijuan.tu
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Ling @ 2023-06-08  2:13 UTC (permalink / raw)
  To: dts; +Cc: Wei Ling

As DTS 865c7212(tests/*_dsa: modify all dsa related testsuites by virtio_common optimize)
So, modify testsuite call function name and function option.

Signed-off-by: Wei Ling <weix.ling@intel.com>
---
 tests/TestSuite_vm2vm_virtio_net_perf_dsa.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/tests/TestSuite_vm2vm_virtio_net_perf_dsa.py b/tests/TestSuite_vm2vm_virtio_net_perf_dsa.py
index 408713f8..b4d55fac 100644
--- a/tests/TestSuite_vm2vm_virtio_net_perf_dsa.py
+++ b/tests/TestSuite_vm2vm_virtio_net_perf_dsa.py
@@ -299,7 +299,7 @@ class TestVM2VMVirtioNetPerfDsa(TestCase):
         self.BC.run_iperf_test_between_2_vms()
         self.BC.check_iperf_result_between_2_vms()
 
-        if not self.check_2M_env:
+        if not self.BC.check_2M_hugepage_size:
             self.vhost_user_pmd.quit()
             self.start_vhost_testpmd(
                 cores=self.vhost_core_list,
@@ -947,10 +947,10 @@ class TestVM2VMVirtioNetPerfDsa(TestCase):
             param=vhost_param,
             no_pci=True,
         )
-        self.check_ping_between_vms()
-        self.check_scp_file_valid_between_vms()
-        self.start_iperf()
-        self.get_perf_result()
+        self.BC.check_ping_between_2_vms()
+        self.BC.check_scp_file_between_2_vms()
+        self.BC.run_iperf_test_between_2_vms()
+        self.BC.check_iperf_result_between_2_vms()
 
         self.vhost_user_pmd.quit()
         vhost_eal_param = (
@@ -1338,7 +1338,7 @@ class TestVM2VMVirtioNetPerfDsa(TestCase):
         dsas = self.DC.bind_dsa_to_dpdk_driver(
             dsa_num=2,
             driver_name="vfio-pci",
-            dsa_index_list=[2, 3],
+            dsa_idxs=[2, 3],
             socket=self.ports_socket,
         )
         dmas1 = (
@@ -1617,7 +1617,7 @@ class TestVM2VMVirtioNetPerfDsa(TestCase):
         dsas = self.DC.bind_dsa_to_dpdk_driver(
             dsa_num=2,
             driver_name="vfio-pci",
-            dsa_index_list=[2, 3],
+            dsa_idxs=[2, 3],
             socket=self.ports_socket,
         )
         dmas1 = (
-- 
2.34.1


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

end of thread, other threads:[~2023-06-14  1:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-08  2:13 [dts][PATCH V1] tests/vm2vm_virtio_net_perf_dsa: modify testsuite by tests/virtio_common.py have changed Wei Ling
2023-06-14  1:31 ` lijuan.tu

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