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

Fix "keymap_or_locale" on svirt backends which are not s390x-kvm #6642

Merged
merged 3 commits into from
Jan 25, 2019

Conversation

okurz
Copy link
Member

@okurz okurz commented Jan 25, 2019

We tried to distinguish by "is_remote_backend" if there is a "tty" where
we can try out the keymap without being logged in or if we need to use a
"logged in terminal", e.g. a ssh session. However some backends which we
consider "remote" still do offer ttys: The svirt backends provide a complete
remote control of the VM instances including ttys with the notable exception
of s390x KVM which calls itself "svirt" itself but does not provide the ttys.
Hence this commit introduces another explicit backend check function which
we can use in the "keymap_or_locale" test module.

See for example:

Verification runs:

for i in https://openqa.suse.de/tests/2401420 https://openqa.suse.de/tests/2401211 https://openqa.suse.de/tests/2401491; \
do openqa-clone-custom-git-refspec https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/6642 $i ; done

Created job #2404376: sle-15-SP1-Installer-DVD-x86_64-Build149.2-default@svirt-hyperv -> https://openqa.suse.de/t2404376
Created job #2404377: sle-15-SP1-Installer-DVD-s390x-Build149.2-textmode@s390x-kvm-sle12 -> https://openqa.suse.de/t2404377
Created job #2404379: sle-15-SP1-Installer-DVD-x86_64-Build149.2-textmode@64bit -> https://openqa.suse.de/t2404379

Related progress issue: https://progress.opensuse.org/issues/46508

psladek was not contributing in past years and is not reacting to tickets.
lib/Utils/Backends.pm Outdated Show resolved Hide resolved
@@ -14,12 +14,12 @@
# with this program; if not, see <http://www.gnu.org/licenses/>.

# Summary: Log into system installed with autoyast
# Maintainer: Pavel Sladek <psladek@suse.cz>
# Maintainer: Oliver Kurz <okurz@suse.de>
Copy link
Member Author

Choose a reason for hiding this comment

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

see 66fef8a for reasoning

tests/locale/keymap_or_locale.pm Show resolved Hide resolved
@okurz okurz force-pushed the fix/keymap_poo46508 branch 2 times, most recently from ddbb329 to 16310d6 Compare January 25, 2019 11:59
lib/Utils/Backends.pm Outdated Show resolved Hide resolved
We tried to distinguish by "is_remote_backend" if there is a "tty" where
we can try out the keymap without being logged in or if we need to use a
"logged in terminal", e.g. a ssh session. However some backends which we
consider "remote" still do offer ttys: The svirt backends provide a complete
remote control of the VM instances including ttys with the notable exception
of s390x KVM which calls itself "svirt" itself but does not provide the ttys.
Hence this commit introduces another explicit backend check function which
we can use in the "keymap_or_locale" test module.

See for example:
* https://openqa.suse.de/tests/2401420#step/keymap_or_locale/2 on
  "svirt-hyperv" failing because we expect a cleared console but we do have
  a tty which was unexpected
* https://openqa.suse.de/tests/2401211#step/keymap_or_locale/3 on s390x-kvm
  where there is no tty but a terminal session provided by ssh
* https://openqa.suse.de/tests/2401491#step/keymap_or_locale/3 on the
  standard qemu backend showing the tty

Related progress issue: https://progress.opensuse.org/issues/46508
@okurz
Copy link
Member Author

okurz commented Jan 25, 2019

all jobs passed

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