test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/TestSuite_kni:Modify ping6 mode to adapt to the higher version of Ping
@ 2020-06-04  2:57 xizhan4x
  2020-06-04  3:02 ` Zhang, XiX
  2020-06-11 12:08 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: xizhan4x @ 2020-06-04  2:57 UTC (permalink / raw)
  To: dts; +Cc: xizhan4x


Modify ping6 mode to adapt to the higher version of Ping 

Signed-off-by: xizhan4x <xix.zhang@intel.com>
---
 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-11 12:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-04  2:57 [dts] [PATCH V1] tests/TestSuite_kni:Modify ping6 mode to adapt to the higher version of Ping xizhan4x
2020-06-04  3:02 ` Zhang, XiX
2020-06-11 12:08 ` Tu, Lijuan

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).