Tested-by: Li, WenjieX A > -----Original Message----- > From: Li, WenjieX A > Sent: Friday, December 6, 2019 10:30 PM > To: dts@dpdk.org > Cc: Li, WenjieX A > 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 > --- > 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