From: sunqin <qinx.sun@intel.com>
To: dts@dpdk.org
Cc: sunqin <qinx.sun@intel.com>
Subject: [dts] [PATCH V1] framework/pmd_output: add timeout parameter for start_pmd method
Date: Fri, 9 Apr 2021 12:25:48 +0000 [thread overview]
Message-ID: <20210409122548.31485-1-qinx.sun@intel.com> (raw)
some cases start testpmd with 'cmdline-file' may need more than 120 seconds,
so add 'timeout' parameter to support customization and default value still set as 120
Signed-off-by: sunqin <qinx.sun@intel.com>
---
framework/pmd_output.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/framework/pmd_output.py b/framework/pmd_output.py
index 1ad4ce79..838fa0bd 100644
--- a/framework/pmd_output.py
+++ b/framework/pmd_output.py
@@ -148,7 +148,8 @@ class PmdOutput():
command = command.replace(' ', ' ')
if self.session != self.dut:
self.session.send_expect("cd %s" % self.dut.base_dir, "# ")
- out = self.session.send_expect(command, expected, 120)
+ 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.
sleep(10)
--
2.17.1
next reply other threads:[~2021-04-09 3:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-09 12:25 sunqin [this message]
2021-04-12 2:19 ` Sun, QinX
2021-04-12 2:22 ` Zhao, HaiyangX
2021-04-12 5:48 ` Tu, Lijuan
-- strict thread matches above, loose matches on Subject: below --
2021-04-09 11:48 sunqin
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=20210409122548.31485-1-qinx.sun@intel.com \
--to=qinx.sun@intel.com \
--cc=dts@dpdk.org \
/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).