os-autoinst-distri-rocky/tests/_console_login.pm

26 lines
553 B
Perl
Raw Normal View History

use base "basetest";
use strict;
use testapi;
use utils;
sub run {
my $self = shift;
send_key "ctrl-alt-f3";
# do user login unless USER_LOGIN is set to string 'false'
unless (get_var("USER_LOGIN") eq "false") {
console_login(user=>get_var("USER_LOGIN", "test"), password=>get_var("USER_PASSWORD", "weakpassword"));
}
if (get_var("ROOT_PASSWORD")) {
console_login(user=>"root", password=>get_var("ROOT_PASSWORD"));
}
}
sub test_flags {
return { fatal => 1, milestone => 1 };
}
1;
# vim: set sw=4 et: