[dts] [PATCH V1] tests/TestSuite_multiple_pthread:use all test_list

Tu, Lijuan lijuan.tu at intel.com
Wed May 20 04:56:43 CEST 2020


Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of xizhan4x
> Sent: Tuesday, May 19, 2020 4:49 PM
> To: dts at dpdk.org
> Cc: Zhang, XiX <xix.zhang at intel.com>
> Subject: [dts] [PATCH V1] tests/TestSuite_multiple_pthread:use all test_list
> 
> test_positive use all test_list
> 
> Signed-off-by: xizhan4x <xix.zhang at intel.com>
> ---
>  tests/TestSuite_multiple_pthread.py | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/TestSuite_multiple_pthread.py
> b/tests/TestSuite_multiple_pthread.py
> index 8825628..83ab7bd 100644
> --- a/tests/TestSuite_multiple_pthread.py
> +++ b/tests/TestSuite_multiple_pthread.py
> @@ -196,9 +196,8 @@ class TestMultiplePthread(TestCase):
>                        "cpu_list":[n[1], n[2], n[3], n[5]],
>                        "core_list":n[1:6]}
>                       ]
> -        params_list = random.sample(test_list, 1)
> -        params = params_list[0]
> -        self.multiple_pthread_test(params["lcores"], params["cpu_list"],
> params["core_list"])
> +        for params in test_list:
> +            self.multiple_pthread_test(params["lcores"], params["cpu_list"],
> params["core_list"])
> 
>      def test_negative(self):
>          """
> --
> 2.17.2



More information about the dts mailing list