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 828FBA00C5; Thu, 11 Jun 2020 14:08:47 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6ABFCFFA; Thu, 11 Jun 2020 14:08:47 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id B8A2CF04 for ; Thu, 11 Jun 2020 14:08:44 +0200 (CEST) IronPort-SDR: xSkgCYDLj/KYN78a60xHVa0lOjGW0+pDtvjRzoT69OxG0jp3W4tu2kYkK1vR+kKAESdycR7EhR dOM6XyN94apg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2020 05:08:43 -0700 IronPort-SDR: NlKfWOQLjuf+5CHDyM+qWrPqQMalJwNRJmchbba8vX94tDqO7U4wUB2AKAuxNiLJQSv9ovFk55 mwFQ+l7X2eOA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,499,1583222400"; d="scan'208";a="275312745" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga006.jf.intel.com with ESMTP; 11 Jun 2020 05:08:43 -0700 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 11 Jun 2020 05:08:43 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 11 Jun 2020 05:08:42 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.85]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.25]) with mapi id 14.03.0439.000; Thu, 11 Jun 2020 20:08:40 +0800 From: "Tu, Lijuan" To: "Zhang, XiX" , "dts@dpdk.org" CC: "Zhang, XiX" Thread-Topic: [dts] [PATCH V1] tests/TestSuite_kni:Modify ping6 mode to adapt to the higher version of Ping Thread-Index: AQHWOhxz99uevKlbNkq2rLPGOgrhA6jTXdaQ Date: Thu, 11 Jun 2020 12:08:39 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC5BB87@SHSMSX101.ccr.corp.intel.com> References: <1591239424-10425-1-git-send-email-xix.zhang@intel.com> In-Reply-To: <1591239424-10425-1-git-send-email-xix.zhang@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-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] tests/TestSuite_kni:Modify ping6 mode to adapt to the higher version of Ping 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 On Behalf Of xizhan4x Sent: 2020=1B$BG/=1B(B6=1B$B7n=1B(B4=1B$BF|=1B(B 10:57 To: dts@dpdk.org Cc: Zhang, XiX Subject: [dts] [PATCH V1] tests/TestSuite_kni:Modify ping6 mode to adapt to= the higher version of Ping Modify ping6 mode to adapt to the higher version of Ping=20 Signed-off-by: xizhan4x --- tests/TestSuite_kni.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py index d518f3e.= .8f95e75 100644 --- a/tests/TestSuite_kni.py +++ b/tests/TestSuite_kni.py @@ -613,8 +613,8 @@ class TestKni(TestCase): self.tester.send_expect("ifconfig %s up" % tx_interface, "# ") out =3D self.dut.send_expect("ping6 -w 1 -I %s %s" % (v_intf_ip, str(ipv6_address)), "# = ", 10) - out1 =3D self.dut.send_expect("ping6 -w 1 -I %s %s" % - (virtual_interface, str(ipv6_addres= s)), "# ", 10) + out1 =3D self.dut.send_expect("ping6 -w 1 %s%%%s" % + =20 + (str(ipv6_address),virtual_interface), "# ", 10) # FC25 ping6 output info is "64 bytes from ipv6_address%v: icm= p_seq=3D1 ttl=3D64" # other os ping6 output is "64 bytes from ipv6_address: icmp_s= eq=3D1 ttl=3D64" expected_str =3D "64 bytes from %s" % ipv6_address @@ -623,7 += 623,7 @@ class TestKni(TestCase): out =3D self.tester.send_expect( "ping6 -w 1 -I %s %s" % (tx_intf_ip, str(ipv6_address)), "= # ", 10) out1 =3D self.tester.send_expect( - "ping6 -w 1 -I %s %s" % (tx_interface, str(ipv6_address)),= "# ", 10) + "ping6 -w 1 %s%%%s" % (str(ipv6_address),tx_interface),=20 + "# ", 10) expected_str =3D "64 bytes from %s" % ipv6_address self.verify(any([expected_str in out, expected_str in out1]), "kni cannot reply ping6 packet") @@ -637,8 +637,8 = @@ class TestKni(TestCase): =20 out =3D self.dut.send_expect("ping6 -w 1 -I %s %s" % (v_intf_ip, ''.join(ipv6list)), "# = ", 10) - out1 =3D self.dut.send_expect("ping6 -w 1 -I %s %s" % - (virtual_interface, ''.join(ipv6lis= t)), "# ", 10) + out1 =3D self.dut.send_expect("ping6 -w 1 %s%%%s" % + =20 + (''.join(ipv6list),virtual_interface), "# ", 10) expected_str =3D "0 received, 100% packet loss" self.verify(any([expected_str in out, expected_str in out1]), "ping6 not supported") -- 2.17.2