[V1] Add timeout parameter and default value for start_testpmd API
Checks
Context |
Check |
Description |
ci/Intel-dts-suite-test |
success
|
Testing OK
|
Commit Message
Signed-off-by: Jun Dong <junx.dong@intel.com>
---
framework/pmd_output.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Wed, 16 Mar 2022 14:57:04 +0800, Jun Dong <junx.dong@intel.com> wrote:
> Signed-off-by: Jun Dong <junx.dong@intel.com>
Applied, thanks
@@ -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.