From: Ling Wei <weix.ling@intel.com>
To: dts@dpdk.org
Cc: Ling Wei <weix.ling@intel.com>
Subject: [dts] [PATCH V1] framework/pmd_output:start_testpmd interface support expected params
Date: Tue, 2 Feb 2021 13:28:58 +0000 [thread overview]
Message-ID: <20210202132858.3876856-1-weix.ling@intel.com> (raw)
According to commit 9af79db20f4cf759b76d08941e7e62f91880892d,
when launch virtio-user testpmd as server mode, virtio-user server side
testpmd expected character will be 'wait for client side started...',
after client side started, it change to 'testpmd>'.
Signed-off-by: Ling Wei <weix.ling@intel.com>
---
framework/pmd_output.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/framework/pmd_output.py b/framework/pmd_output.py
index 3daa86b6..1ad4ce79 100644
--- a/framework/pmd_output.py
+++ b/framework/pmd_output.py
@@ -103,7 +103,7 @@ class PmdOutput():
def get_pmd_cmd(self):
return self.command
- def start_testpmd(self, cores='default', param='', eal_param='', socket=0, fixed_prefix=False, **config):
+ def start_testpmd(self, cores='default', param='', eal_param='', socket=0, fixed_prefix=False, expected='testpmd> ', **config):
"""
start testpmd with input parameters.
:param cores: eg:
@@ -148,7 +148,7 @@ 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, "testpmd> ", 120)
+ out = self.session.send_expect(command, expected, 120)
self.command = command
# wait 10s to ensure links getting up before test start.
sleep(10)
--
2.25.1
next reply other threads:[~2021-02-02 5:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-02 13:28 Ling Wei [this message]
2021-02-02 5:39 ` Ling, WeiX
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=20210202132858.3876856-1-weix.ling@intel.com \
--to=weix.ling@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).