-
Notifications
You must be signed in to change notification settings - Fork 172
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
Netkvm: Fix multi_nics_verify test by adding NIC initialization check #4175
base: master
Are you sure you want to change the base?
Conversation
Test Result:
|
@leidwang Could you help review this patch? Many appreciations. |
fe2fd53
to
1a59acf
Compare
qemu/tests/multi_nics_verify.py
Outdated
while True: | ||
status, nics_num_checking_cmd_out = session.cmd_status_output(nics_num_checking_cmd, timeout=360) | ||
if int(nics_num_checking_cmd_out) == nics_num: | ||
break | ||
time.sleep(30) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while True: | |
status, nics_num_checking_cmd_out = session.cmd_status_output(nics_num_checking_cmd, timeout=360) | |
if int(nics_num_checking_cmd_out) == nics_num: | |
break | |
time.sleep(30) | |
utils_misc.wait_for(lambda: int(session.cmd__output(nics_num_checking_cmd, timeout=360)) == nics_num, ***, 30) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to setup an end condition for the while block, otherwise it might get stuck in an endless loop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. I will test its result ASAP.
b83e95a
to
595bdbd
Compare
4c41418
to
2cf785d
Compare
The test failed because Windows didn't assign IPs to all NICs immediately after boot. A loop was added to check the NIC count until all are initialized, ensuring the test waits for all NICs to get their IP addresses before proceeding. Signed-off-by: wji <[email protected]>
2cf785d
to
ad006cd
Compare
The test failed because Windows didn't assign IPs to all NICs immediately after boot. A loop was added to check the NIC count until all are initialized, ensuring the test waits for all NICs to get their IP addresses before proceeding.
ID: 2393
Signed-off-by: wji [email protected]