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
1 changed files with 3 additions and 0 deletions

View File

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