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

Message ID 20230605065520.564604-1-weix.ling@intel.com (mailing list archive)
State Accepted
Headers
Series modify pvp_virtio_user_4k_pages by DPDK |

Checks

Context Check Description
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-doc-test success Testing OK

Commit Message

Ling, WeiX June 5, 2023, 6:55 a.m. UTC
  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@intel.com>
---
 tests/TestSuite_pvp_virtio_user_4k_pages.py | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
  

Comments

Tu, Lijuan June 7, 2023, 7:59 a.m. UTC | #1
On Mon,  5 Jun 2023 14:55:20 +0800, Wei Ling <weix.ling@intel.com> wrote:
> 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@intel.com>


Series applied, thanks
  

Patch

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)