Don't create user when USER_LOGIN is false, but for KDE install

Summary:
For some reason, we have `USER_LOGIN` set to 'false' for the KDE
package set install test. I really don't know / remember why
that would be; I'd think we should create a user and log in as
that user to make sure it works properly when installing KDE
from the traditional installer. It's not strictly part of the
package set test, true, but still, seems worth doing.

Also, when `USER_LOGIN` is set to 'false' and the installer runs,
we create a user called 'false'. This doesn't seem like what we
wanted, so let's not do that. I dunno if there are any other
cases besides the KDE one that this commit changes, but still.

Test Plan:
Run the full test suite and look for weirdness, check
KDE package set test works as intended (now creates a user called
'test' and logs in as that user).

Reviewers: jsedlak, jskladan

Reviewed By: jsedlak

Subscribers: tflink

Differential Revision: https://phab.qa.fedoraproject.org/D1182
This commit is contained in:
Adam Williamson 2017-03-28 17:52:00 -07:00
parent 9090485519
commit b6d4fd7d4c
2 changed files with 26 additions and 25 deletions

View File

@ -2099,7 +2099,6 @@
{ key => "PACKAGE_SET", value => "kde" }, { key => "PACKAGE_SET", value => "kde" },
{ key => "POSTINSTALL", value => "_collect_data" }, { key => "POSTINSTALL", value => "_collect_data" },
{ key => "REPOSITORY_VARIATION", value => "%LOCATION%" }, { key => "REPOSITORY_VARIATION", value => "%LOCATION%" },
{ key => "USER_LOGIN", value => "false" },
], ],
}, },
{ {

View File

@ -60,6 +60,7 @@ sub run {
# wait out animation # wait out animation
sleep 3; sleep 3;
my $user_login = get_var("USER_LOGIN") || "test"; my $user_login = get_var("USER_LOGIN") || "test";
unless $user_login eq 'false' {
assert_and_click "anaconda_install_user_creation"; assert_and_click "anaconda_install_user_creation";
assert_screen "anaconda_install_user_creation_screen"; assert_screen "anaconda_install_user_creation_screen";
# wait out animation # wait out animation
@ -91,6 +92,7 @@ sub run {
wait_still_screen 1; wait_still_screen 1;
assert_and_click "anaconda_spoke_done"; assert_and_click "anaconda_spoke_done";
} }
}
# Check username (and hence keyboard layout) if non-English # Check username (and hence keyboard layout) if non-English
if (get_var('LANGUAGE')) { if (get_var('LANGUAGE')) {