Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove test user need logout firstly #13917

Merged
merged 2 commits into from Dec 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 2 additions & 9 deletions lib/services/users.pm
Expand Up @@ -102,14 +102,8 @@ sub switch_users {
# handle welcome screen, when needed
handle_welcome_screen(timeout => 120) if (opensuse_welcome_applicable);
handle_gnome_activities;
switch_user;
send_key "esc";
assert_and_click "displaymanager-$username";
assert_screen "originUser-login-dm";
# for poo#88247, we have to restore current user's password before migration,
# so here need to use the original password.
type_password(get_required_var('FLAVOR') =~ /Migration/ ? "$password\n" : "$newpwd\n");
handle_gnome_activities;
handle_logout;
wait_still_screen 10;
}

# restore password to original value
Expand All @@ -129,7 +123,6 @@ sub restore_passwd {

# remove test user
sub remove_test_user {
assert_script_run("pkill -KILL -u $newUser");
assert_script_run("userdel -r $newUser");
}

Expand Down