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;
|
2024-01-09 18:37:57 +00:00
|
|
|
select_console "tty3-console";
|
2016-12-16 17:40:29 +00:00
|
|
|
# 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") {
|
2022-07-28 20:32:57 +00:00
|
|
|
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")) {
|
2022-07-28 20:32:57 +00:00
|
|
|
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 {
|
2022-07-28 20:32:57 +00:00
|
|
|
return {fatal => 1, milestone => 1};
|
2016-12-16 17:40:29 +00:00
|
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|