-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove hardcode sleeps in dpdksuite.py #1635
Comments
I think we removed these, there's a rewritten timeout function that runs dpdk for 10 seconds, this is required since testpmd will just continue to run until you kill it with SIGINT. Can you check lisa/microsoft/testsuites/dpdk/dpdktestpmd.py Line 216 in c36e493
|
There's another use of the function at lisa/microsoft/testsuites/dpdk/dpdksuite.py Line 788 in c36e493
in the wrapper we use to run testpmd concurrently on nodes. |
It's ok to have them in a command like "timeout 10; ...". But below pattern is not encouraged, which is easy to misuse. lisa/microsoft/testsuites/dpdk/dpdksuite.py Line 799 in c36e493
|
now hard code sleep moved into dpdkutil.py after this PR https://github.com/microsoft/lisa/pull/1824/files#diff-1c721f3db2542187986b69a1de1bac854714b180b224241115b72eb689e7e14cR235 @mcgov |
There are three hardcode sleep 10 or 15 seconds. Please use a timout loop to detect the behavior. Not use the hard code big sleep number.
The text was updated successfully, but these errors were encountered: