From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id DB3AE7CB3 for ; Mon, 11 Sep 2017 09:42:14 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Sep 2017 00:42:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,376,1500966000"; d="scan'208";a="133945775" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by orsmga002.jf.intel.com with ESMTP; 11 Sep 2017 00:42:09 -0700 From: "xu,huilong" To: dts@dpdk.org Cc: "xu,huilong" Date: Mon, 11 Sep 2017 15:43:24 +0800 Message-Id: <1505115804-10859-1-git-send-email-huilongx.xu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] add a new check ponit for ptype mapping test X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Sep 2017 07:42:15 -0000 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 --- 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