2017-01-18 07:15:44 +00:00
|
|
|
use base "basetest";
|
2016-12-16 17:40:29 +00:00
|
|
|
use strict;
|
|
|
|
use testapi;
|
2017-01-18 07:15:44 +00:00
|
|
|
use utils;
|
2016-12-16 17:40:29 +00:00
|
|
|
|
|
|
|
sub run {
|
|
|
|
my $self = shift;
|
|
|
|
send_key "ctrl-alt-f3";
|
|
|
|
# do user login unless USER_LOGIN is set to string 'false'
|
2018-06-13 17:11:53 +00:00
|
|
|
# Since there is no console support for arabic, so we cannot let the user log in
|
|
|
|
# with a password that requires Arabic support.
|
2018-05-11 12:09:24 +00:00
|
|
|
# Such attempt to log in would always fail.
|
|
|
|
if (get_var("LANGUAGE") ne "arabic" && get_var("USER_LOGIN") ne "false") {
|
|
|
|
console_login(user=>get_var("USER_LOGIN", "test"), password=>get_var("USER_PASSWORD", "weakpassword"));
|
2018-06-13 17:11:53 +00:00
|
|
|
}
|
2016-12-16 17:40:29 +00:00
|
|
|
if (get_var("ROOT_PASSWORD")) {
|
|
|
|
console_login(user=>"root", password=>get_var("ROOT_PASSWORD"));
|
2018-06-13 17:11:53 +00:00
|
|
|
}
|
|
|
|
}
|
2016-12-16 17:40:29 +00:00
|
|
|
sub test_flags {
|
|
|
|
return { fatal => 1, milestone => 1 };
|
|
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|