[V1] tests/large_vf: modify script to adapt to changes in dpdk
Checks
Commit Message
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(-)
@@ -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: