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'
|
|
|
|
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 {
|
|
|
|
# without anything - rollback to 'lastgood' snapshot if failed
|
|
|
|
# 'fatal' - whole test suite is in danger if this fails
|
|
|
|
# 'milestone' - after this test succeeds, update 'lastgood'
|
|
|
|
# 'important' - if this fails, set the overall state to 'fail'
|
|
|
|
return { fatal => 1, milestone => 1 };
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|