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

Wenjie Li wenjiex.a.li at intel.com
Fri Dec 6 15:30:09 CET 2019


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