[dts][PATCH V1 2/2] tests/pvp_virtio_user_4k_pages: modify testuite by DPDK changed

Wei Ling weix.ling at intel.com
Mon Jun 5 08:55:20 CEST 2023


1.Fix the verify the test result PASS or FAIL from the config file
issue.
2.As the DPDK commit a399d7b5(vfio: do not coalesce DMA mappings) changed,
We need to delete the `--no-huge -m 1024` parameter when start the
vhost-user as back-end side. So delete `--no-huge -m 1024` parameter 
in testsuite.

Signed-off-by: Wei Ling <weix.ling at intel.com>
---
 tests/TestSuite_pvp_virtio_user_4k_pages.py | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/tests/TestSuite_pvp_virtio_user_4k_pages.py b/tests/TestSuite_pvp_virtio_user_4k_pages.py
index a89725e5..e8011fd3 100644
--- a/tests/TestSuite_pvp_virtio_user_4k_pages.py
+++ b/tests/TestSuite_pvp_virtio_user_4k_pages.py
@@ -159,10 +159,11 @@ class TestPvpVirtioUser4kPages(TestCase):
             self.result_table_add(table_row)
         # present test results to screen
         self.result_table_print()
-        self.verify(
-            "FAIL" not in self.test_result,
-            "Excessive gap between test results and expectations",
-        )
+        for data in self.test_result.values():
+            self.verify(
+                data["Status"] != "FAIL",
+                "Excessive gap between test results and expectations",
+            )
 
     def start_testpmd_as_vhost(self):
         """
@@ -177,7 +178,7 @@ class TestPvpVirtioUser4kPages(TestCase):
             ports=[self.pci_info],
             vdevs=[vdev],
         )
-        command_line_client = testcmd + eal_params + " -m 1024 --no-huge" + para
+        command_line_client = testcmd + eal_params + para
         self.vhost_user.send_expect(command_line_client, "testpmd> ", 120)
         self.vhost_user.send_expect("start", "testpmd> ", 120)
 
-- 
2.34.1



More information about the dts mailing list