From 6a82a7b2222bc1e3424b04d4d6e45a85bd452ecb Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 16 Jun 2020 08:36:01 -0700 Subject: [PATCH] Tweak still screen waits in _do_install_and_reboot We still have sliding animation issues sometimes, this should help. Signed-off-by: Adam Williamson --- tests/_do_install_and_reboot.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/_do_install_and_reboot.pm b/tests/_do_install_and_reboot.pm index 3b332d08..3cbbcdd5 100644 --- a/tests/_do_install_and_reboot.pm +++ b/tests/_do_install_and_reboot.pm @@ -56,10 +56,12 @@ sub _set_root_password { sub _do_root_and_user { _set_root_password(); - # Wait out animation - wait_still_screen 8; # Set user details, unless the test is configured not to create one - anaconda_create_user() unless (get_var("USER_LOGIN") eq 'false' || get_var("INSTALL_NO_USER")); + unless (get_var("USER_LOGIN") eq 'false' || get_var("INSTALL_NO_USER")) { + # Wait out animation + wait_still_screen 8; + anaconda_create_user(); + } # Check username (and hence keyboard layout) if non-English if (get_var('LANGUAGE')) { assert_screen "anaconda_install_user_created"; @@ -81,7 +83,7 @@ sub run { # Sometimes, the 'slide in from the top' animation messes with # this - by the time we click the button isn't where it was any # more. So wait for screen to stop moving before we click. - wait_still_screen 2; + wait_still_screen 8; assert_and_click "anaconda_main_hub_begin_installation"; # If we want to test identification we will do it