[dts] [PATCH V1] tests/ptype_mapping: remove the action of insert printf to app/test-pmd/rxonly.c

wenjieli wenjiex.a.li at intel.com
Wed Oct 17 07:44:13 CEST 2018


'self.dut.send_expect("sed ...' insert a new line in app/test-pmd/rxonly.c,
this is useless and could cause compile error, remove it.

Signed-off-by: wenjieli <wenjiex.a.li at intel.com>
---
 tests/TestSuite_ptype_mapping.py | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/tests/TestSuite_ptype_mapping.py b/tests/TestSuite_ptype_mapping.py
index 8f310e8..efe52ff 100644
--- a/tests/TestSuite_ptype_mapping.py
+++ b/tests/TestSuite_ptype_mapping.py
@@ -53,9 +53,6 @@ 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);'" +\
-            " app/test-pmd/rxonly.c", "# ", 30, verify = True)
         self.dut.build_install_dpdk(self.dut.target)
         
 
@@ -229,8 +226,6 @@ class TestPtype_Mapping(TestCase):
         """
         Run after each test suite.
         """
-        self.dut.send_expect("sed -i '/printf(\" - pktype: 0x%x\", " +\
-            "mb->packet_type);/d' app/test-pmd/rxonly.c", "# ", 30, verify = True)
         self.dut.build_install_dpdk(self.dut.target)
         self.dut.kill_all()
         pass
-- 
2.17.2



More information about the dts mailing list