mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-08-09 02:15:44 +00:00
53 lines
1.5 KiB
Perl
53 lines
1.5 KiB
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
# handle bootloader, if requested
|
|
if (get_var("GRUB_POSTINSTALL")) {
|
|
do_bootloader(postinstall=>1, params=>get_var("GRUB_POSTINSTALL"));
|
|
}
|
|
|
|
# decrypt disks during boot if necessary
|
|
if (get_var("ENCRYPT_PASSWORD")) {
|
|
boot_decrypt(60);
|
|
}
|
|
|
|
boot_to_login_screen;
|
|
|
|
if (get_var("GUI_UPGRADE")) {
|
|
# Log onto the graphical session
|
|
my $login = get_var("USER_LOGIN") // "test";
|
|
my $password = get_var("USER_PASSWORD") // "weakpassword";
|
|
desktop_login($login, $password);
|
|
# Let's send one Esc key to come back from Activities later releases.
|
|
send_key("esc");
|
|
wait_still_screen 2;
|
|
# Start the terminal
|
|
menu_launch_type("gnome-terminal");
|
|
wait_still_screen 2;
|
|
# Use gsettings to set the upgrade-prerelease to true
|
|
type_safely("gsettings set org.gnome.software show-upgrade-prerelease true\n");
|
|
# Exit the application
|
|
type_safely("exit");
|
|
}
|
|
# switch to TTY3 for both, graphical and console tests
|
|
$self->root_console(tty=>3);
|
|
# disable screen blanking (update can take a long time)
|
|
script_run "setterm -blank 0";
|
|
# adjust repo files to use mirrorlist not metalink (to avoid
|
|
# metalink checksum timing issue causing infra repo to be rejected)
|
|
repos_mirrorlist;
|
|
}
|
|
|
|
|
|
sub test_flags {
|
|
return { fatal => 1 };
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|