test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/userspace_ethtool: exit the loop in 5s
@ 2019-12-06 14:30 Wenjie Li
  2019-12-06  5:46 ` Li, WenjieX A
  2019-12-06  8:53 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: Wenjie Li @ 2019-12-06 14:30 UTC (permalink / raw)
  To: dts; +Cc: Wenjie Li

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@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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-12-06  8:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-06 14:30 [dts] [PATCH V1] tests/userspace_ethtool: exit the loop in 5s Wenjie Li
2019-12-06  5:46 ` Li, WenjieX A
2019-12-06  8:53 ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).