[V1] tests/large_vf: modify script to adapt to changes in dpdk

Message ID 20230207105041.868387-1-songx.jiale@intel.com (mailing list archive)
State Superseded
Headers
Series [V1] tests/large_vf: modify script to adapt to changes in dpdk |

Checks

Context Check Description
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-suite-test fail Testing issues

Commit Message

Jiale, SongX Feb. 7, 2023, 10:50 a.m. UTC
  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(-)
  

Patch

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: