From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 28D38914 for ; Thu, 2 Mar 2017 10:09:37 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2017 01:09:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,230,1484035200"; d="scan'208";a="1103912488" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by orsmga001.jf.intel.com with ESMTP; 02 Mar 2017 01:09:35 -0800 From: "xu,huilong" To: dts@dpdk.org Cc: "xu,huilong" Date: Thu, 2 Mar 2017 17:11:00 +0800 Message-Id: <1488445860-3000-1-git-send-email-huilongx.xu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V2] fix ring dump case failed 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: Thu, 02 Mar 2017 09:09:37 -0000 Testpmd init will create many ring, and last ring name is MP_mbuf_pool_socket_0 Signed-off-by: xu,huilong --- tests/TestSuite_unit_tests_dump.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_unit_tests_dump.py b/tests/TestSuite_unit_tests_dump.py index a39fcd1..3c508aa 100644 --- a/tests/TestSuite_unit_tests_dump.py +++ b/tests/TestSuite_unit_tests_dump.py @@ -92,8 +92,9 @@ 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 ring name failed") + #Testpmd init will create 3N+1 ring, and the last ring name is MP_mbuf_pool_socket_0 + #other ring name about nic bus ID and ring type, so will not check. we only check ring_dump function work ok + self.verify( 'MP_mbuf_pool_socket_0' in result[0][-1], "dump ring name failed") def test_mempool_dump(self): """ -- 1.9.3