From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2B26BA0613 for ; Fri, 30 Aug 2019 05:26:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E7CFB1E4ED; Fri, 30 Aug 2019 05:26:30 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id CD98E1E4DC for ; Fri, 30 Aug 2019 05:26:28 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Aug 2019 20:26:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,445,1559545200"; d="scan'208";a="356655717" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga005.jf.intel.com with ESMTP; 29 Aug 2019 20:26:27 -0700 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 29 Aug 2019 20:26:27 -0700 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by fmsmsx120.amr.corp.intel.com (10.18.124.208) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 29 Aug 2019 20:26:26 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.80]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.215]) with mapi id 14.03.0439.000; Fri, 30 Aug 2019 11:26:25 +0800 From: "Tu, Lijuan" To: "Zhao, XinfengX" , "dts@dpdk.org" CC: "Zhao, XinfengX" Thread-Topic: [dts] [PATCH] tests: fix the verify issue in mtu test Thread-Index: AQHVVyZxYMa71l3gz0OFMXwjZM9KYqcTFw7g Date: Fri, 30 Aug 2019 03:26:25 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB078E1@SHSMSX101.ccr.corp.intel.com> References: <1566255529-164242-1-git-send-email-xinfengx.zhao@intel.com> In-Reply-To: <1566255529-164242-1-git-send-email-xinfengx.zhao@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMGQ2YjBkMjQtYmIxOS00MDk1LWExNTEtYjFhMmI1MjM4NzhjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoibjdmazMyd1IybnZaSnVVTW1BdndNdnNGWUkwVnJOYktnSThPdlUwRWN0M2craGhKOGxJZ2hRM05FNlVGbGdVYSJ9 x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH] tests: fix the verify issue in mtu test X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" 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 > Subject: [dts] [PATCH] tests: fix the verify issue in mtu test >=20 > the output of mtu test as below, so should modify the verified pattern >=20 > 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) >=20 > Signed-off-by: Xinfeng Zhao > --- > tests/TestSuite_vf_kernel.py | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > 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 =3D self.vm0_dut.ports_info[1]['intf'] > self.vm0_dut.send_expect("ifconfig %s up" % self.vm0_intf0, "#") > out =3D self.vm0_dut.send_expect("ifconfig %s" % self.vm0_intf0,= "#") > - self.verify('mtu 1500' in out, "modify MTU failed") > + result =3D re.search('mtu\W1500', out, flags=3Dre.I) > + self.verify(result is not None, "modify MTU failed") > self.tester.send_expect("ifconfig %s mtu 3000" % self.tester_int= f, "#") >=20 > self.dut_testpmd.execute_cmd('stop') > -- > 2.17.1