1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-25 15:23:08 +00:00

Let _console_avc_crash wait a bit longer for console login

On Rawhide update tests we often don't seem to get to the login
prompt in 10 seconds, so tweak the code a bit to let us specify
a timeout in root_console, and use 30 seconds here.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2022-06-06 18:34:44 -07:00
parent e047a88ffc
commit e1ed9960f3
2 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,7 @@ sub root_console {
my $self = shift;
my %args = (
tty => 1, # what TTY to login to
timeout => 0, # passed through to console_login
@_);
if (get_var("SERIAL_CONSOLE")) {
# select the first virtio terminal, for now we assume we can
@ -27,7 +28,7 @@ sub root_console {
# For normal terminal emulation, use key combo to reach a tty
send_key "ctrl-alt-f$args{tty}";
}
console_login; # Do the login.
console_login(timeout=>$args{timeout}); # Do the login.
}
sub post_fail_hook {

View File

@ -5,7 +5,7 @@ use testapi;
sub run {
my $self = shift;
$self->root_console(tty=>3);
$self->root_console(tty=>3, timeout=>30);
# if this is a non-English, non-switched layout, load US layout
# at this point
# FIXME: this is all kind of a mess, as on such configs we need