mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-25 14:41:27 +00:00
desktop_login: just reboot from console after user creation
We don't *need* to log out from the desktop and reboot from the DM here, that's not part of the test (we test those features later using jim and jack). Now we don't black out the background of test's session in KDE, the logout needle doesn't match, so instead of redoing that needle all the time or re-adding the solidify_wallpaper call just to make one needle match reliable, let's just reboot from the console. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
8106286a43
commit
16313bd80e
@ -47,9 +47,6 @@ sub adduser {
|
|||||||
assert_script_run "chown -R $login.$login /home/$login/.config";
|
assert_script_run "chown -R $login.$login /home/$login/.config";
|
||||||
assert_script_run "restorecon -vr /home/$login/.config";
|
assert_script_run "restorecon -vr /home/$login/.config";
|
||||||
}
|
}
|
||||||
if ($args{termstop}) {
|
|
||||||
desktop_vt;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub lock_screen {
|
sub lock_screen {
|
||||||
@ -201,26 +198,24 @@ sub run {
|
|||||||
# use solid blue background for SDDM
|
# use solid blue background for SDDM
|
||||||
assert_script_run "sed -i -e 's,image,solid,g' /usr/share/sddm/themes/01-breeze-fedora/theme.conf.user";
|
assert_script_run "sed -i -e 's,image,solid,g' /usr/share/sddm/themes/01-breeze-fedora/theme.conf.user";
|
||||||
}
|
}
|
||||||
adduser(name=>"Jack Sparrow", login=>"jack", password=>$jackpass, termstop=>0);
|
adduser(name=>"Jack Sparrow", login=>"jack", password=>$jackpass);
|
||||||
if ($desktop eq "gnome") {
|
if ($desktop eq "gnome") {
|
||||||
# In Gnome, we can create a passwordless user that can provide his password upon
|
# In Gnome, we can create a passwordless user that can provide his password upon
|
||||||
# the first login. So we can create the second user in this way to test this feature
|
# the first login. So we can create the second user in this way to test this feature
|
||||||
# later.
|
# later.
|
||||||
adduser(name=>"Jim Eagle", login=>"jim", password=>"askuser", termstop=>1);
|
adduser(name=>"Jim Eagle", login=>"jim", password=>"askuser");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
# In KDE, we can also create a passwordless user, but we cannot log into the system
|
# In KDE, we can also create a passwordless user, but we cannot log into the system
|
||||||
# later, so we will create the second user the standard way.
|
# later, so we will create the second user the standard way.
|
||||||
adduser(name=>"Jim Eagle", login=>"jim", password=>$jimpass, termstop=>1);
|
adduser(name=>"Jim Eagle", login=>"jim", password=>$jimpass);
|
||||||
}
|
}
|
||||||
|
|
||||||
# Clean boot the system, and note what accounts are listed on the login screen.
|
# Clean boot the system, and note what accounts are listed on the login screen.
|
||||||
# Log out the default user "test" and reboot the system
|
# There is no need to check specifically if the users are listed, because if they
|
||||||
# before the actual testing starts. There is no need to check specifically
|
# are not, the login tests will fail later.
|
||||||
# if the users are listed, because if they are not, the login tests will fail
|
script_run "systemctl reboot", 0;
|
||||||
# later.
|
boot_to_login_screen;
|
||||||
logout_user();
|
|
||||||
reboot_system();
|
|
||||||
|
|
||||||
# Log in with the first user account.
|
# Log in with the first user account.
|
||||||
login_user(user=>"jack", password=>$jackpass);
|
login_user(user=>"jack", password=>$jackpass);
|
||||||
|
Loading…
Reference in New Issue
Block a user