[dts] [PATCH V1] tests/large_vf: modify script to adapt to changes in dpdk
Song Jiale
songx.jiale at intel.com
Tue Feb 7 11:50:41 CET 2023
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 at 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
More information about the dts
mailing list