From 200cab3899fbf78cc14bb55647198f7a4f107812 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Oct 07 2020 21:52:49 +0000 Subject: disk_custom_resize_lvm: add some waits On ppc64le it looks like this test is often failing because it takes a second or two to update the partition list after we click update settings, but we're not waiting for that, so we wind up clicking in the wrong place because we match the next partition needle before the list is refreshed but click after it's refreshed. Let's hope these waits solve it. Signed-off-by: Adam Williamson --- diff --git a/tests/disk_custom_resize_lvm.pm b/tests/disk_custom_resize_lvm.pm index 31c3c4e..fb07e08 100644 --- a/tests/disk_custom_resize_lvm.pm +++ b/tests/disk_custom_resize_lvm.pm @@ -39,6 +39,8 @@ sub run { type_very_safely "/boot"; assert_and_click "anaconda_part_device_reformat"; assert_and_click "anaconda_part_update_settings"; + # give it a second or two to update + wait_still_screen 2; # For UEFI based images, we need to reassign the efi boot # mountpoint as well @@ -48,6 +50,8 @@ sub run { type_very_safely "/boot/efi"; assert_and_click "anaconda_part_device_reformat"; assert_and_click "anaconda_part_update_settings"; + # give it a second or two to update + wait_still_screen 2; } # Now resize and format the current root partition @@ -61,6 +65,8 @@ sub run { # Reformat and update the partition assert_and_click "anaconda_part_device_reformat"; assert_and_click "anaconda_part_update_settings"; + # give it a second or two to update + wait_still_screen 2; # Add new /home partition into the emptied space. assert_and_click "anaconda_part_add";