From: lihong <lihongx.ma@intel.com>
To: dts@dpdk.org
Cc: lihong <lihongx.ma@intel.com>
Subject: [dts] [PATCH V2 3/3][nsh] tests/uni_pkt: update code
Date: Tue, 15 Oct 2019 05:49:02 +0800 [thread overview]
Message-ID: <1571089742-7077-3-git-send-email-lihongx.ma@intel.com> (raw)
In-Reply-To: <1571089742-7077-1-git-send-email-lihongx.ma@intel.com>
Signed-off-by: lihong <lihongx.ma@intel.com>
---
tests/TestSuite_uni_pkt.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/tests/TestSuite_uni_pkt.py b/tests/TestSuite_uni_pkt.py
index 0310e04..e6bd42b 100644
--- a/tests/TestSuite_uni_pkt.py
+++ b/tests/TestSuite_uni_pkt.py
@@ -444,9 +444,8 @@ class TestUniPacket(TestCase):
}
for packet in nsh_packets:
- self.tester.scapy_foreground()
- self.tester.scapy_append("sendp([%s],iface='%s')" % (nsh_packets[packet], self.tester_iface))
- self.tester.scapy_execute()
+ pk=Packet(nsh_packets[packet])
+ pk.send_pkt(self.tester, self.tester_iface)
out = self.dut.get_session_output(timeout=2)
self.verify(nsh_detect_message[packet] in out, "Packet Detection Error for : %s" % packet)
print utils.GREEN("Detected packet %s Successfully" % packet)
--
2.7.4
next prev parent reply other threads:[~2019-10-15 5:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-14 21:49 [dts] [PATCH V2 1/3][nsh] dep: add support of mpls and nsh lihong
2019-10-14 21:49 ` [dts] [PATCH V2 2/3][nsh] framework/packet: add support of nsh and mpls lihong
2019-11-04 5:33 ` Chen, Zhaoyan
2019-11-22 5:38 ` Tu, Lijuan
2019-10-14 21:49 ` lihong [this message]
2019-10-16 1:59 ` [dts] [PATCH V2 3/3][nsh] tests/uni_pkt: update code Ma, LihongX
2019-11-04 5:34 ` Chen, Zhaoyan
2019-11-04 5:33 ` [dts] [PATCH V2 1/3][nsh] dep: add support of mpls and nsh Chen, Zhaoyan
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=1571089742-7077-3-git-send-email-lihongx.ma@intel.com \
--to=lihongx.ma@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).