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 83038A046B for ; Tue, 20 Aug 2019 09:10:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 53E3D1BEB3; Tue, 20 Aug 2019 09:10:07 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id B55341BEB2 for ; Tue, 20 Aug 2019 09:10:05 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Aug 2019 00:10:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,407,1559545200"; d="scan'208";a="262080946" Received: from dpdk-xinfengx-dut242.sh.intel.com ([10.67.116.198]) by orsmga001.jf.intel.com with ESMTP; 20 Aug 2019 00:09:58 -0700 From: Xinfeng Zhao To: dts@dpdk.org Cc: Xinfeng Zhao Date: Tue, 20 Aug 2019 06:58:49 +0800 Message-Id: <1566255529-164242-1-git-send-email-xinfengx.zhao@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [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" 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 --- 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