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 A813C2B9D for ; Thu, 2 Mar 2017 09:04:21 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2017 00:04:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,230,1484035200"; d="scan'208";a="1136887805" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 02 Mar 2017 00:03:40 -0800 From: "xu,huilong" To: dts@dpdk.org Cc: "xu,huilong" Date: Thu, 2 Mar 2017 16:05:04 +0800 Message-Id: <1488441904-2699-1-git-send-email-huilongx.xu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] 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 08:04:22 -0000 when bind igb_uio on NIC. Newest testpmd will creat many ring. 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..c3515da 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") + #when we bind some nic with igb_uio. 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