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

[type description here, PLEASE, REMOVE THIS LINE, PLACEHOLDER, BEFORE SUBMITTING THIS PULL REQUEST] #21126

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions tests/jeos/firstrun.pm
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ use jeos qw(expect_mount_by_uuid);
use utils qw(assert_screen_with_soft_timeout ensure_serialdev_permissions);
use serial_terminal 'prepare_serial_console';

my $user_created = 0;

sub post_fail_hook {
assert_script_run('timedatectl');
assert_script_run('locale');
Expand Down Expand Up @@ -138,15 +136,13 @@ sub verify_selinux {
}

sub create_user_in_terminal {
if ($user_created) {
if (script_run("getent passwd $username") == 0) {
record_info('user', sprintf("%s has already been created", script_output("getent passwd $username")));
return;
}

assert_script_run "useradd -m $username -c '$realname'";
assert_script_run "echo $username:$password | chpasswd";

$user_created = 1;
}

sub enter_root_passwd {
Expand Down Expand Up @@ -181,8 +177,6 @@ sub create_user_in_ui {
wait_screen_change(sub { send_key "down" }, 25);
type_password;
send_key 'ret';

$user_created = 1;
}

sub run {
Expand Down