From: xizhan4x <xix.zhang@intel.com>
To: dts@dpdk.org
Cc: xizhan4x <xix.zhang@intel.com>
Subject: [dts] [PATCH V1] tests/TestSuite_kni:Modify ping6 mode to adapt to the higher version of Ping
Date: Thu, 4 Jun 2020 10:57:04 +0800 [thread overview]
Message-ID: <1591239424-10425-1-git-send-email-xix.zhang@intel.com> (raw)
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
next reply other threads:[~2020-06-04 3:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-04 2:57 xizhan4x [this message]
2020-06-04 3:02 ` Zhang, XiX
2020-06-11 12:08 ` Tu, Lijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1591239424-10425-1-git-send-email-xix.zhang@intel.com \
--to=xix.zhang@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).