test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [V1] Add timeout parameter and default value for start_testpmd API
@ 2022-03-16  6:57 Jun Dong
  2022-03-23  7:04 ` lijuan.tu
  0 siblings, 1 reply; 2+ messages in thread
From: Jun Dong @ 2022-03-16  6:57 UTC (permalink / raw)
  To: dts; +Cc: lijuan.tu, qingx.sun, junx.dong

Signed-off-by: Jun Dong <junx.dong@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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-23  7:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-16  6:57 [dts] [V1] Add timeout parameter and default value for start_testpmd API Jun Dong
2022-03-23  7:04 ` lijuan.tu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).