diff --git a/lib/installedtest.pm b/lib/installedtest.pm index 2c5e7702..a47ef3db 100644 --- a/lib/installedtest.pm +++ b/lib/installedtest.pm @@ -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 { diff --git a/tests/_console_avc_crash.pm b/tests/_console_avc_crash.pm index 1bbea36a..ee3a591e 100644 --- a/tests/_console_avc_crash.pm +++ b/tests/_console_avc_crash.pm @@ -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