Skip to content
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

Add a param to force use serial session in case of failure #1961

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sathnaga
Copy link
Member

Currently, we do have a logic in wait_for_login to
return serial session incase of failure if provided
by the user through function param, this patch extends
that functionality by adding a param which can be use set,
so that serial session is returned in case of failure,
this will be helpful as we most of the testcases using
wait_for_login with default params and we do not need
to modify the testcases, this can be useful during certain
env issues if we want to force use serial logins for the same test.

Signed-off-by: Satheesh Rajendran [email protected]

@vivianQizhu
Copy link
Contributor

Sometimes we need to be ware of the network broken, so I suppose we better let users decide use serial or not(if they care about the network issue).

@sathnaga
Copy link
Member Author

@vivianQizhu True, bydefault the behaviour is same as previous, just introducing additional user param, to decide to override consciously in some situations, to do that, this patch would help in general for all tests without any changes..

@sathnaga
Copy link
Member Author

@vivianQizhu Agree, this will be a useful workaround by not touching the old testcases.
and it is safe through a user param aswell.

Currently, we do have a logic in wait_for_login to
return serial session incase of failure if provided
by the user through function param, this patch extends
that functionality by adding a param which can be used
to set, So serial session is returned in case of failure,
as most of the testcases using wait_for_login with default
params and we do not need to modify the testcases,
this can be useful during certain env issues if we want to
force use serial logins for the same test.

Signed-off-by: Satheesh Rajendran <[email protected]>
@sathnaga sathnaga force-pushed the serial_login_param branch from f472dc9 to fe4e1dc Compare May 4, 2020 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants