mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-22 13:11:26 +00:00
e000209967
Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D481
52 lines
1.3 KiB
Perl
52 lines
1.3 KiB
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
|
|
# wait for either GDM or text login
|
|
if (get_var('UPGRADE') eq "desktop") {
|
|
$self->boot_to_login_screen("graphical_login", 30); # GDM takes time to load
|
|
} else {
|
|
$self->boot_to_login_screen();
|
|
}
|
|
# switch to TTY3 for both, graphical and console tests
|
|
$self->root_console(tty=>3);
|
|
|
|
# fedup should be installed on up-to-date system
|
|
|
|
type_string 'yum -y update; echo $?';
|
|
send_key "ret";
|
|
|
|
assert_screen "console_command_success", 1800;
|
|
|
|
type_string "reboot";
|
|
send_key "ret";
|
|
|
|
if (get_var('UPGRADE') eq "desktop") {
|
|
$self->boot_to_login_screen("graphical_login", 30); # GDM takes time to load
|
|
} else {
|
|
$self->boot_to_login_screen();
|
|
}
|
|
$self->root_console(tty=>3);
|
|
|
|
type_string 'yum -y install fedup; echo $?';
|
|
send_key "ret";
|
|
|
|
assert_screen "console_command_success", 1800;
|
|
}
|
|
|
|
|
|
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 };
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|