[dts] [PATCH V1] add a new check ponit for ptype mapping test

xu,huilong huilongx.xu at intel.com
Mon Sep 11 09:43:24 CEST 2017


check linux commend exec succeful, if update dpdk code failed by sed commend. This test will failed,
and not have any log.

Signed-off-by: xu,huilong <huilongx.xu at intel.com>
---
 tests/TestSuite_ptype_mapping.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_ptype_mapping.py b/tests/TestSuite_ptype_mapping.py
index 517aac4..8f310e8 100644
--- a/tests/TestSuite_ptype_mapping.py
+++ b/tests/TestSuite_ptype_mapping.py
@@ -55,7 +55,7 @@ class TestPtype_Mapping(TestCase):
         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)
+            " app/test-pmd/rxonly.c", "# ", 30, verify = True)
         self.dut.build_install_dpdk(self.dut.target)
         
 
@@ -230,7 +230,7 @@ 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)
+            "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
-- 
1.9.3



More information about the dts mailing list