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 autoyast keyboard layout test #6833

Merged
merged 1 commit into from
Feb 20, 2019

Conversation

jknphy
Copy link
Contributor

@jknphy jknphy commented Feb 19, 2019

Add autoyast keyboard layout test

Requires new test suite autoyast_keyboard_layout similar to autoyast_mini except for the following params:
AUTOYAST=autoyast_sle15/autoyast_keyboard_layout.xml
INSTALL_KEYBOARD_LAYOUT=cz
AUTOYAST_CONFIRM=

@jknphy jknphy changed the title Add autoyast keyboard layout test [WIP] Add autoyast keyboard layout test Feb 19, 2019
@jknphy jknphy force-pushed the add_autoyast_keyboard_layout_test branch from 586dd80 to ea76776 Compare February 19, 2019 09:08
@jknphy jknphy changed the title [WIP] Add autoyast keyboard layout test Add autoyast keyboard layout test Feb 19, 2019
@jknphy jknphy force-pushed the add_autoyast_keyboard_layout_test branch from ea76776 to 5e50289 Compare February 19, 2019 12:19
@jknphy jknphy force-pushed the add_autoyast_keyboard_layout_test branch from 5e50289 to 888aa94 Compare February 19, 2019 12:42
tests/locale/keymap_or_locale.pm Show resolved Hide resolved
tests/locale/keymap_or_locale.pm Outdated Show resolved Hide resolved
@jknphy jknphy force-pushed the add_autoyast_keyboard_layout_test branch from 888aa94 to f679ee8 Compare February 19, 2019 13:33
@jknphy jknphy changed the title Add autoyast keyboard layout test [WIP] Add autoyast keyboard layout test Feb 19, 2019
@jknphy jknphy force-pushed the add_autoyast_keyboard_layout_test branch 2 times, most recently from 7361dd7 to 534fe66 Compare February 19, 2019 14:38
@jknphy jknphy changed the title [WIP] Add autoyast keyboard layout test Add autoyast keyboard layout test Feb 19, 2019
@jknphy
Copy link
Contributor Author

jknphy commented Feb 20, 2019

All suggestions addressed.

@coolo coolo added the notready label Feb 20, 2019
@coolo
Copy link
Contributor

coolo commented Feb 20, 2019

Don't merge before the needles are merged


if (check_var('DESKTOP', 'textmode')) {
assert_screen([qw(linux-login cleared-console)]);
verify_default_keymap_textmode($keystrokes, "${expected}_keymap");
return if verify_default_keymap_textmode($keystrokes, "${expected}_keymap");
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure if this is clear, this condition is weird to me. I would split the method into two and make it explicit that if it's us we don't run further checks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I created a function for that to make it more clear. VR updated.

@jknphy jknphy force-pushed the add_autoyast_keyboard_layout_test branch from 534fe66 to b439eb8 Compare February 20, 2019 11:49
@jknphy jknphy force-pushed the add_autoyast_keyboard_layout_test branch from b439eb8 to eb4ddf1 Compare February 20, 2019 12:53
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.

main.pm changes are ugly, but there is no other way as of now. We will address that with new scheduling approach.

@rwx788 rwx788 merged commit 65ca0c8 into os-autoinst:master Feb 20, 2019
@rwx788 rwx788 removed the notready label Feb 20, 2019
@rwx788
Copy link
Member

rwx788 commented Feb 20, 2019

I was not able to merge needles, because gitlab is down, so please, do not enable test suite yet =)

@jknphy
Copy link
Contributor Author

jknphy commented Feb 20, 2019

For me is up, should I merge them myself?

@rwx788
Copy link
Member

rwx788 commented Feb 20, 2019

@jknphy , please, do so. I've checked those needles and they are fine ;)

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