From: "Liu, Yong" <yong.liu@intel.com>
To: haifeng <haifengx.tang@intel.com>, dts@dpdk.org
Subject: Re: [dts] [PATCH] fix test script get the output from the pmd driver correctly if the command inputs aren't from tester side
Date: Fri, 23 Oct 2015 13:14:04 +0800 [thread overview]
Message-ID: <5629C21C.3010900@intel.com> (raw)
In-Reply-To: <1445576351-34309-1-git-send-email-haifengx.tang@intel.com>
Haifeng,
There's one function get_session_output defined in crb.py can match the
requirement. Please do not call low level APIs directly.
On 10/23/2015 12:59 PM, haifeng wrote:
> Signed-off-by: haifeng <haifengx.tang@intel.com>
> ---
> tests/TestSuite_fdir.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tests/TestSuite_fdir.py b/tests/TestSuite_fdir.py
> index 1372674..f186eb2 100644
> --- a/tests/TestSuite_fdir.py
> +++ b/tests/TestSuite_fdir.py
> @@ -99,7 +99,8 @@ class TestFdir(TestCase, IxiaPacketGenerator):
> self.dut.send_expect("start", "testpmd>")
> self.tester.scapy_execute()
> time.sleep(.5)
> - out = self.dut.send_expect("stop", "testpmd>")
> + out = self.dut.session.get_session_before()
> + self.dut.send_expect("stop", "testpmd>")
>
> if(self.nic in ["kawela", "niantic", "fortville_eagle", "fortville_spirit", "fortville_spirit_single"]):
> if ("fwd" == self.fdir_type):
next prev parent reply other threads:[~2015-10-23 5:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-23 4:59 haifeng
2015-10-23 5:14 ` Liu, Yong [this message]
2015-10-23 5:27 ` Tang, HaifengX
2015-10-23 5:22 haifeng
2015-10-23 5:29 ` Liu, Yong
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=5629C21C.3010900@intel.com \
--to=yong.liu@intel.com \
--cc=dts@dpdk.org \
--cc=haifengx.tang@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).