test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/large_vf: modify script to adapt to changes in dpdk
@ 2023-02-07 10:50 Song Jiale
  0 siblings, 0 replies; only message in thread
From: Song Jiale @ 2023-02-07 10:50 UTC (permalink / raw)
  To: dts; +Cc: Song Jiale

after dpdk is modified, if all ports fail to start, dpdk still allows
testpmd to enter the command line, instead of unconditionally
terminating testpmd.

According to dpdk commit 7e40372522c("app/testpmd: fix interactive mode with no ports").

Signed-off-by: Song Jiale <songx.jiale@intel.com>
---
 tests/TestSuite_large_vf.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_large_vf.py b/tests/TestSuite_large_vf.py
index 4e2ff1d6..bfc7ca08 100644
--- a/tests/TestSuite_large_vf.py
+++ b/tests/TestSuite_large_vf.py
@@ -124,7 +124,7 @@ exceed_256_queues = {
 more_than_3_vfs_256_queues = {
     "name": "test_more_than_3_vfs_256_queues",
     "param": "--txq=256 --rxq=256",
-    "check_param": "Cause: Start ports failed",
+    "check_param": "Start ports failed",
 }
 
 max_vfs_256_queues_3 = [
@@ -373,11 +373,12 @@ class TestLargeVf(TestCase):
                                 + "-- -i "
                                 + tv["param"]
                             )
-                            out = self.pmd_output.execute_cmd(cmd, "#")
+                            out = self.pmd_output.execute_cmd(cmd, "testpmd> ")
                             self.verify(
                                 tv["check_param"] in out,
                                 "fail: testpmd start successfully",
                             )
+                            self.pmd_output.quit()
                             self.pmdout_list[0].execute_cmd("quit", "# ")
                             break
                         else:
-- 
2.25.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-07  2:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-07 10:50 [dts] [PATCH V1] tests/large_vf: modify script to adapt to changes in dpdk Song Jiale

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