From: Haiyang Zhao <haiyangx.zhao@intel.com>
To: dts@dpdk.org
Cc: Haiyang Zhao <haiyangx.zhao@intel.com>
Subject: [dts] [PATCH V1 1/3] framework/pmd_output:fix a bug in execute_cmd
Date: Sat, 12 Oct 2019 17:57:19 +0800 [thread overview]
Message-ID: <1570874241-92780-1-git-send-email-haiyangx.zhao@intel.com> (raw)
*.when session is not a dut instance,
function send_expect has no keyword arg alt_session.
Signed-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>
---
framework/pmd_output.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/framework/pmd_output.py b/framework/pmd_output.py
index bcb3865..13dd6f1 100644
--- a/framework/pmd_output.py
+++ b/framework/pmd_output.py
@@ -183,8 +183,11 @@ class PmdOutput():
def execute_cmd(self, pmd_cmd, expected='testpmd> ', timeout=TIMEOUT,
alt_session=False):
- return self.session.send_expect('%s' % pmd_cmd, expected, timeout=timeout,
+ if 'dut' in str(self.session):
+ return self.session.send_expect('%s' % pmd_cmd, expected, timeout=timeout,
alt_session=alt_session)
+ else:
+ return self.session.send_expect('%s' % pmd_cmd, expected, timeout=timeout)
def get_output(self, timeout=1):
if 'dut' in str(self.session):
--
1.8.3.1
next reply other threads:[~2019-10-12 9:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-12 9:57 Haiyang Zhao [this message]
2019-10-12 9:57 ` [dts] [PATCH V1 2/3] test_plans/runtime_vf_queue_number_maxinum: update test plan Haiyang Zhao
2019-10-12 9:57 ` [dts] [PATCH V1 3/3] tests: add runtime_vf_queue_number_maxinum Haiyang Zhao
2019-10-21 2:23 ` [dts] [PATCH V1 1/3] framework/pmd_output:fix a bug in execute_cmd Tu, Lijuan
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=1570874241-92780-1-git-send-email-haiyangx.zhao@intel.com \
--to=haiyangx.zhao@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).