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

Move keyboard selection to welcome #6492

Merged

Conversation

jknphy
Copy link
Contributor

@jknphy jknphy commented Jan 9, 2019

Move keyboard selection code to welcome test module to have all the tests related to that screen in one place.

@@ -16,7 +16,28 @@ use warnings;
use base "y2logsstep";
use testapi;
use utils 'ensure_fullscreen';
use version_utils qw(:VERSION :SCENARIO);
use version_utils qw(:VERSION :SCENARIO is_sle);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:VERSION tag should already import is_sle.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool, I didn't know we have this constant now. good to know.

Copy link
Member

@rwx788 rwx788 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM, but I'm still not sure if we should do that. I see the point, but separate module also have some advantages over having everything in a single place. So what's about at least making it more visible that we test keyboard layout with e.g. record_info calls?

@jknphy jknphy force-pushed the move_keyboard_sel_to_welcome branch from 9d48ecb to d8b7afa Compare January 9, 2019 12:00
@jknphy
Copy link
Contributor Author

jknphy commented Jan 9, 2019

Yes, that was my initial idea but I forgot at the end. Including it. thx.
I am in favor to map stuff by screen so I think It will help even if it is a small thing.

@OleksandrOrlov
Copy link
Contributor

I like the idea of moving keyboard layout test to the welcome module.

And also, I'm finding great to call record_info that allows to identify that the test is executed without checking openQA variables.

LGTM.

@OleksandrOrlov
Copy link
Contributor

The only thing, I want to request is could you please execute verification run on migration job to sle15, on s390x Sle15, on Sle12 (any architecture).

@jknphy
Copy link
Contributor Author

jknphy commented Jan 9, 2019

I was searching one by one in x86_64 and s390x column in Migration group for sle15 in case I could find some job where was scheduled keyboard_selection and there is none and the schedule is similar for sle12, so I think we play in the safe place without farther verification.

@OleksandrOrlov OleksandrOrlov merged commit 9893bc3 into os-autoinst:master Jan 9, 2019
@okurz
Copy link
Member

okurz commented Jan 12, 2019

@jknphy you could use an approach as in https://github.com/okurz/scripts/blob/master/openqa-db_query_last_use_of_module to find out where a module is running

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants