[dts] [PATCH V2] fix ring dump case failed
Liu, Yong
yong.liu at intel.com
Mon Mar 6 02:58:50 CET 2017
Applied with some comments modified. Thanks.
On 03/02/2017 05:11 PM, xu,huilong wrote:
> Testpmd init will create many ring, and last ring name is MP_mbuf_pool_socket_0
>
> Signed-off-by: xu,huilong <huilongx.xu at intel.com>
> ---
> 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):
> """
More information about the dts
mailing list