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

Li, WenjieX A wenjiex.a.li at intel.com
Fri Dec 6 06:46:24 CET 2019


Tested-by: Li, WenjieX A <wenjiex.a.li at intel.com>

> -----Original Message-----
> From: Li, WenjieX A
> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestUserspaceEthtool.log
Type: application/octet-stream
Size: 6094 bytes
Desc: TestUserspaceEthtool.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20191206/98949229/attachment.obj>


More information about the dts mailing list