test suite reviews and discussions
 help / color / mirror / Atom feed
From: Jun Dong <junx.dong@intel.com>
To: dts@dpdk.org
Cc: lijuan.tu@intel.com, qingx.sun@intel.com, junx.dong@intel.com
Subject: [dts] [V1] Add timeout parameter and default value for start_testpmd API
Date: Wed, 16 Mar 2022 14:57:04 +0800	[thread overview]
Message-ID: <20220316065704.1080-1-junx.dong@intel.com> (raw)

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


             reply	other threads:[~2022-03-16  6:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-16  6:57 Jun Dong [this message]
2022-03-23  7:04 ` lijuan.tu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220316065704.1080-1-junx.dong@intel.com \
    --to=junx.dong@intel.com \
    --cc=dts@dpdk.org \
    --cc=lijuan.tu@intel.com \
    --cc=qingx.sun@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).