mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-05 07:34:20 +00:00
52ceed6f39
Summary: Updating the stable release prior to doing the update can take a long time if the image hasn't been updated for a while, and the upgrade download process itself can take a long time. If the screen blanks out in either case, either the following needle match may fail (if we're waiting for a needle) or 'still screen' may be detected early (if we're waiting for a still screen), so let's disable screen blanking to avoid it. Test Plan: Run the upgrade tests and see if they work. Reviewers: garretraziel, jskladan Reviewed By: jskladan Subscribers: tflink Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D628
54 lines
1.4 KiB
Perl
54 lines
1.4 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);
|
|
# disable screen blanking (update can take a long time)
|
|
type_string "setterm -blank 0\n";
|
|
|
|
# upgrader should be installed on up-to-date system
|
|
|
|
type_string 'dnf -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 'dnf -y --enablerepo=updates-testing install dnf-plugin-system-upgrade; 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:
|