From: yaobing <bingx.y.yao@intel.com>
To: dts@dpdk.org
Cc: yaobing <bingx.y.yao@intel.com>, Lijuan Tu <lijuan.tu@intel.com>
Subject: [dts] [PATCH V1] tests/ptype_mapping: align changes with dpdk
Date: Mon, 22 Oct 2018 17:31:04 +0800 [thread overview]
Message-ID: <1540200664-3915-1-git-send-email-bingx.y.yao@intel.com> (raw)
get local coremask due to script hard code
Since dpdk commit b2fd027389 changes the file app/test-pmd/rxonly.c,
test cases should be aligned with dpdk.
Signed-off-by: Lijuan Tu <lijuan.tu@intel.com>
Signed-off-by: yaobing <bingx.y.yao@intel.com>
---
tests/TestSuite_ptype_mapping.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_ptype_mapping.py b/tests/TestSuite_ptype_mapping.py
index 8f310e8..1581887 100644
--- a/tests/TestSuite_ptype_mapping.py
+++ b/tests/TestSuite_ptype_mapping.py
@@ -53,8 +53,9 @@ class TestPtype_Mapping(TestCase):
self.dut_port = valports[0]
tester_port = self.tester.get_local_port(self.dut_port)
self.tester_iface = self.tester.get_interface(tester_port)
- self.dut.send_expect("sed -i -e '/mb->vlan_tci, mb->vlan_tci_outer);" +\
- "/a\printf(\" - pktype: 0x%x\", mb->packet_type);'" +\
+ self.dut.send_expect("sed -i -e '" +\
+ "/rte_get_ptype_name(mb->packet_type, buf, sizeof(buf));" +\
+ "/a\\\\t\\t\\tprintf(\" - pktype: 0x%x\", mb->packet_type);'" +\
" app/test-pmd/rxonly.c", "# ", 30, verify = True)
self.dut.build_install_dpdk(self.dut.target)
--
2.17.2
next reply other threads:[~2018-10-22 9:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-22 9:31 yaobing [this message]
2018-11-01 10:01 wenjieli
2018-11-05 10:41 ` Lijuan Tu
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=1540200664-3915-1-git-send-email-bingx.y.yao@intel.com \
--to=bingx.y.yao@intel.com \
--cc=dts@dpdk.org \
--cc=lijuan.tu@intel.com \
/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).