[dts] [PATCH V1] tests/ptype_mapping: align changes with dpdk
yaobing
bingx.y.yao at intel.com
Mon Oct 22 11:31:04 CEST 2018
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 at intel.com>
Signed-off-by: yaobing <bingx.y.yao at 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
More information about the dts
mailing list