From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 40182910D for ; Tue, 15 Aug 2017 11:46:46 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP; 15 Aug 2017 02:46:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,377,1498546800"; d="scan'208";a="123720129" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by orsmga002.jf.intel.com with ESMTP; 15 Aug 2017 02:46:45 -0700 From: "lu,peipei" To: dts@dpdk.org Cc: "lu,peipei" Date: Tue, 15 Aug 2017 17:48:01 +0800 Message-Id: <1502790481-73745-1-git-send-email-peipeix.lu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests/unit_tests_dump:update ring and mempool dump test case 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: Tue, 15 Aug 2017 09:46:47 -0000 1.Check default ring name in ring list for sequence may be changed between OSes. 2.Change default mbuf pool name for check dump function. Signed-off-by: lu,peipei --- tests/TestSuite_unit_tests_dump.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_unit_tests_dump.py b/tests/TestSuite_unit_tests_dump.py index 03c9554..90588cb 100644 --- a/tests/TestSuite_unit_tests_dump.py +++ b/tests/TestSuite_unit_tests_dump.py @@ -88,13 +88,13 @@ class TestUnitTestsDump(TestCase): self.dut.send_expect("./%s/app/testpmd -n 1 -c f -- -i" % (self.target), "testpmd>", self.start_test_time) out = self.dut.send_expect("dump_ring", "testpmd>", self.run_cmd_time) self.dut.send_expect("quit", "# ") - match_regex = "ring <(.*?)>@0x(.*)\r\n" + match_regex = "ring <(.*?)>" m = re.compile(r"%s" % match_regex, re.S) result = m.findall(out) # Nic driver will create multiple rings. # Only check the last one to make sure ring_dump function work. - self.verify( 'MP_mbuf_pool_socket_0' in result[0], "dump ring name failed") + self.verify( 'MP_mbuf_pool_socket_0' in result, "dump ring name failed") def test_mempool_dump(self): """ @@ -107,7 +107,7 @@ class TestUnitTestsDump(TestCase): m = re.compile(r"%s" % match_regex, re.S) result = m.findall(out) - self.verify(result[0][0] == 'MP_mbuf_pool_socket_0', "dump mempool name failed") + self.verify(result[0][0] == 'mbuf_pool_socket_0', "dump mempool name failed") def test_physmem_dump(self): """ -- 1.9.3