From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Zhao, XinfengX" <xinfengx.zhao@intel.com>,
"dts@dpdk.org" <dts@dpdk.org>
Cc: "Zhao, XinfengX" <xinfengx.zhao@intel.com>
Subject: Re: [dts] [PATCH] tests: fix the verify issue in mtu test
Date: Fri, 30 Aug 2019 03:26:25 +0000 [thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB078E1@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1566255529-164242-1-git-send-email-xinfengx.zhao@intel.com>
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xinfeng Zhao
> Sent: Tuesday, August 20, 2019 6:59 AM
> To: dts@dpdk.org
> Cc: Zhao, XinfengX <xinfengx.zhao@intel.com>
> Subject: [dts] [PATCH] tests: fix the verify issue in mtu test
>
> the output of mtu test as below, so should modify the verified pattern
>
> ens4 Link encap:Ethernet HWaddr 7e:62:c3:58:16:11
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
>
> Signed-off-by: Xinfeng Zhao <xinfengx.zhao@intel.com>
> ---
> tests/TestSuite_vf_kernel.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tests/TestSuite_vf_kernel.py b/tests/TestSuite_vf_kernel.py index
> 92b1202..bee30a0 100644
> --- a/tests/TestSuite_vf_kernel.py
> +++ b/tests/TestSuite_vf_kernel.py
> @@ -517,7 +517,8 @@ class TestVfKernel(TestCase):
> vm0_intf1 = self.vm0_dut.ports_info[1]['intf']
> self.vm0_dut.send_expect("ifconfig %s up" % self.vm0_intf0, "#")
> out = self.vm0_dut.send_expect("ifconfig %s" % self.vm0_intf0, "#")
> - self.verify('mtu 1500' in out, "modify MTU failed")
> + result = re.search('mtu\W1500', out, flags=re.I)
> + self.verify(result is not None, "modify MTU failed")
> self.tester.send_expect("ifconfig %s mtu 3000" % self.tester_intf, "#")
>
> self.dut_testpmd.execute_cmd('stop')
> --
> 2.17.1
prev parent reply other threads:[~2019-08-30 3:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-19 22:58 Xinfeng Zhao
2019-08-30 3:26 ` Tu, Lijuan [this message]
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=8CE3E05A3F976642AAB0F4675D0AD20E0BB078E1@SHSMSX101.ccr.corp.intel.com \
--to=lijuan.tu@intel.com \
--cc=dts@dpdk.org \
--cc=xinfengx.zhao@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).