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 4E9E35F2C for ; Wed, 17 Oct 2018 09:19:26 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Oct 2018 00:19:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,391,1534834800"; d="scan'208";a="271994464" Received: from juan.sh.intel.com ([10.67.118.154]) by fmsmga005.fm.intel.com with ESMTP; 17 Oct 2018 00:19:24 -0700 From: Lijuan Tu To: dts@dpdk.org Cc: Lijuan Tu Date: Wed, 17 Oct 2018 23:47:22 +0800 Message-Id: <1539791242-14354-1-git-send-email-lijuan.tu@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH] 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: Wed, 17 Oct 2018 07:19:26 -0000 Since dpdk commit b2fd027389 changes the file app/test-pmd/rxonly.c, test cases should be aligned with dpdk. Signed-off-by: Lijuan Tu --- 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) -- 1.8.3.1