use base "installedtest"; use strict; use testapi; use utils; use desktoptools; # This script will prepare the installation for Software tests: # a) it will switch off blanking the monitor on inactivity # b) it will make serial console writable for normal users. sub run { my $self = shift; # Switch to console to make necessary settings and # make the serial console writable. # First, we will log onto a user console. send_key("ctrl-alt-f3"); wait_still_screen(3); console_login(user => get_var("USER_LOGIN", "test"), password => get_var("USER_PASSWORD", "weakpassword")); # Make serial console writable for normal users. make_serial_writable(); # Use gsettings to disable the power management in the VM. assert_script_run("gsettings set org.gnome.desktop.screensaver idle-activation-enabled false"); assert_script_run("gsettings set org.gnome.desktop.session idle-delay 0"); assert_script_run("gsettings set org.gnome.settings-daemon.plugins.power idle-dim false"); # Return to the Desktop desktop_vt(); # Start the Software start_gnome_software(); # Wait for things to settle a bit before snapshotting wait_still_screen(5); } sub test_flags { # If this script fails, there is no need to continue. If it passes # it will set up a milestone for the following tests. return {fatal => 1, milestone => 1}; } 1; # vim: set sw=4 et: