[dts] [PATCH V1] tests/userspace_ethtool: exit the loop in 5s

Tu, Lijuan lijuan.tu at intel.com
Fri Dec 6 09:53:04 CET 2019


Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Wenjie Li
> Sent: Friday, December 6, 2019 10:30 PM
> To: dts at dpdk.org
> Cc: Li, WenjieX A <wenjiex.a.li at intel.com>
> Subject: [dts] [PATCH V1] tests/userspace_ethtool: exit the loop in 5s
> 
> exit the loop in 5s at most; if the status still not equel to expected_status,
> return False and make the case fail.
> 
> Signed-off-by: Wenjie Li <wenjiex.a.li at intel.com>
> ---
>  tests/TestSuite_userspace_ethtool.py | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/TestSuite_userspace_ethtool.py
> b/tests/TestSuite_userspace_ethtool.py
> index f5583f2..e10c376 100644
> --- a/tests/TestSuite_userspace_ethtool.py
> +++ b/tests/TestSuite_userspace_ethtool.py
> @@ -231,6 +231,7 @@ class TestUserspaceEthtool(TestCase,
> IxiaPacketGenerator):
>                  if status == expected_status:
>                      return True
>              time.sleep(1)
> +            retries = retries + 1
>          return False
> 
>      def test_dump_driver_info(self):
> --
> 2.17.1



More information about the dts mailing list