From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id B787B4CA5 for ; Mon, 22 Oct 2018 11:28:04 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Oct 2018 02:28:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,411,1534834800"; d="scan'208";a="102216177" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by orsmga002.jf.intel.com with ESMTP; 22 Oct 2018 02:28:02 -0700 From: yaobing To: dts@dpdk.org Cc: yaobing , Lijuan Tu Date: Mon, 22 Oct 2018 17:31:04 +0800 Message-Id: <1540200664-3915-1-git-send-email-bingx.y.yao@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests/ptype_mapping: align changes with dpdk 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, 22 Oct 2018 09:28:05 -0000 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 Signed-off-by: yaobing --- 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