1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-24 23:03:08 +00:00

Add some waits to root password creation on ARM

This is failing quite consistently lately because we're typing
too fast, we need to wait a bit after the sudo su at least. Let's
be safer.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2024-04-13 14:22:30 -07:00
parent a07ad20240
commit 7465985c50

View File

@ -92,8 +92,11 @@ sub run {
# root user now, for subsequent tests to work # root user now, for subsequent tests to work
select_console "tty3-console"; select_console "tty3-console";
console_login(user => get_var("USER_LOGIN", "test"), password => get_var("USER_PASSWORD", "weakpassword")); console_login(user => get_var("USER_LOGIN", "test"), password => get_var("USER_PASSWORD", "weakpassword"));
wait_still_screen 3;
type_string "sudo su\n"; type_string "sudo su\n";
wait_still screen 3;
type_string "$password\n"; type_string "$password\n";
wait_still_screen 3;
my $root_password = get_var("ROOT_PASSWORD") || "weakpassword"; my $root_password = get_var("ROOT_PASSWORD") || "weakpassword";
assert_script_run "echo 'root:$root_password' | chpasswd"; assert_script_run "echo 'root:$root_password' | chpasswd";
desktop_vt; desktop_vt;