[dts] [V1] Add timeout parameter and default value for start_testpmd API
Jun Dong
junx.dong at intel.com
Wed Mar 16 07:57:04 CET 2022
Signed-off-by: Jun Dong <junx.dong at intel.com>
---
framework/pmd_output.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/framework/pmd_output.py b/framework/pmd_output.py
index bb0fa04b..f27c2513 100644
--- a/framework/pmd_output.py
+++ b/framework/pmd_output.py
@@ -112,6 +112,7 @@ class PmdOutput:
socket=0,
fixed_prefix=False,
expected="testpmd> ",
+ timeout=120,
**config,
):
"""
@@ -170,7 +171,6 @@ class PmdOutput:
command = command.replace(" ", " ")
if self.session != self.dut:
self.session.send_expect("cd %s" % self.dut.base_dir, "# ")
- timeout = config.get("timeout", 120)
out = self.session.send_expect(command, expected, timeout)
self.command = command
# wait 10s to ensure links getting up before test start.
--
2.33.1.windows.1
More information about the dts
mailing list