test suite reviews and discussions
 help / color / mirror / Atom feed
From: Wei Ling <weix.ling@intel.com>
To: dts@dpdk.org
Cc: Wei Ling <weix.ling@intel.com>
Subject: [dts][PATCH V1 2/2] tests/pvp_virtio_user_4k_pages: modify testuite by DPDK changed
Date: Mon,  5 Jun 2023 14:55:20 +0800	[thread overview]
Message-ID: <20230605065520.564604-1-weix.ling@intel.com> (raw)

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

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


             reply	other threads:[~2023-06-05  6:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-05  6:55 Wei Ling [this message]
2023-06-07  7:59 ` lijuan.tu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230605065520.564604-1-weix.ling@intel.com \
    --to=weix.ling@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).