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
Run yast ui test with ncurse for pvm backend #16035
Conversation
Great PR! Please pay attention to the following items before merging: Files matching
This is an automatically generated QA checklist based on modified files |
I think it doesn't make sense to do this hack each time before calling the function, could we consider to do it inside the function? |
7a5f280
to
5c3d4dd
Compare
@coolgw could be this code inside the method |
yast2_console_exec is common function call and it's original design contain a %args can be used for flag ui mode, i do not want yast2_console_exec function contain a hidden hard code logic such as put ncurse mod if is_pvm. I think my implementation has more flexibility and fit original design, the special logic should put on test level not within function level, function level logic should base on parameter. |
it is a hack, because we cannot test PowerVM in a different way, so single point of hack it is better than a hack all over the place, and if someone will face this in the future, needs to put this code again or ask. What I'm not sure if is_pvm would be enough, we need to check if we put inside that is the |
I do not think add extra parameter for yast2_console_exec is a hack, it's normal way to extend function and make it start support more feature, so no hack all over the place, it should give correct parameter for function if needed. |
I'm referring that is a hack the fact that we need to adapt the test with that condition, because that env actually has desktop but we don't test it like that, so it is somehow our workaround. I'm fine if you prefer to do it like that, anyway these are legacy methods. |
Run yast ui test with ncurse for pvm backend