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
In patch_sle we should wait a while to get the password. #6934
Conversation
@@ -483,6 +483,7 @@ sub wait_boot { | |||
type_line_svirt '', expect => $login_ready, timeout => $ready_time + 100, fail_message => 'Could not find login prompt'; | |||
type_line_svirt "root", expect => 'Password'; | |||
type_line_svirt "$testapi::password"; | |||
sleep 10; |
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.
Please add comments here to describe why need add 10s sleep.
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.
added, thanks.
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.
After looking at the above again I wonder how that should help. Why call sleep 10
after typing the password?
Hi, I think you were on a good track with "waiting a bit" before typing into the password prompt but sorry I reverted your PR but I did so for the following reasons:
Every person with merge rights should keep the above in mind for any following pull requests and keep the quality of the overall code base in mind. |
Hi okurz, Huajian.Luo |
Sure. I have linked the according – already existing – ticket in https://progress.opensuse.org/issues/45515 . It's https://progress.opensuse.org/issues/46394 |
OK, thanks for the info. |
in patch_sle we need to wait for a while to get the password, the following check for is-active network expect 'active' but it got the root password from the preceding step. the issue is change user and gpasswd cost too much time.
Related ticket: https://progress.opensuse.org/issues/45515
Verification run: http://openqa-apac1.suse.de/tests/3463