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 EDAABA0513; Thu, 4 Jun 2020 05:01:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4C80E1D59A; Thu, 4 Jun 2020 05:01:12 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id BBA301D57F for ; Thu, 4 Jun 2020 05:01:09 +0200 (CEST) IronPort-SDR: H2/yBVm0Lgl6+erY3lapZvpVsh76jC4eREpix8UcwaiufNBrLvqdO6VAPr/zyvxoOFCWJwGoaR TnklOuUeqpKg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2020 20:01:07 -0700 IronPort-SDR: DCiU2Vz804Z/znzE7isupnG2BtKXhdSR/gqsPEXQej5elJXvaxXK7cGRdFBn38SN1vuRHS4DRC PvoBsFZ8x2ZQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,470,1583222400"; d="scan'208";a="287237318" Received: from unknown (HELO dpdk-wenjielx-dtspatch135.sh.intel.com) ([10.240.183.135]) by orsmga002.jf.intel.com with ESMTP; 03 Jun 2020 20:01:06 -0700 From: xizhan4x To: dts@dpdk.org Cc: xizhan4x Date: Thu, 4 Jun 2020 10:57:04 +0800 Message-Id: <1591239424-10425-1-git-send-email-xix.zhang@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [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" Modify ping6 mode to adapt to the higher version of Ping 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 = self.dut.send_expect("ping6 -w 1 -I %s %s" % (v_intf_ip, str(ipv6_address)), "# ", 10) - out1 = self.dut.send_expect("ping6 -w 1 -I %s %s" % - (virtual_interface, str(ipv6_address)), "# ", 10) + out1 = self.dut.send_expect("ping6 -w 1 %s%%%s" % + (str(ipv6_address),virtual_interface), "# ", 10) # FC25 ping6 output info is "64 bytes from ipv6_address%v: icmp_seq=1 ttl=64" # other os ping6 output is "64 bytes from ipv6_address: icmp_seq=1 ttl=64" expected_str = "64 bytes from %s" % ipv6_address @@ -623,7 +623,7 @@ class TestKni(TestCase): out = self.tester.send_expect( "ping6 -w 1 -I %s %s" % (tx_intf_ip, str(ipv6_address)), "# ", 10) out1 = 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), "# ", 10) expected_str = "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): out = self.dut.send_expect("ping6 -w 1 -I %s %s" % (v_intf_ip, ''.join(ipv6list)), "# ", 10) - out1 = self.dut.send_expect("ping6 -w 1 -I %s %s" % - (virtual_interface, ''.join(ipv6list)), "# ", 10) + out1 = self.dut.send_expect("ping6 -w 1 %s%%%s" % + (''.join(ipv6list),virtual_interface), "# ", 10) expected_str = "0 received, 100% packet loss" self.verify(any([expected_str in out, expected_str in out1]), "ping6 not supported") -- 2.17.2