From 3444d2f959f83439464fa3be4d0e8ff5dcfd7c3d Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 11 Mar 2020 17:22:26 -0700 Subject: [PATCH] Try and fix blivet test fails caused by too-early OK click We seem to quite often get a failure in the blivet_lvmthin test here which seems to be caused by trying to click 'OK' while the 'Device type' menu is still changing state or something. Let's throw in a little delay. Signed-off-by: Adam Williamson --- lib/anaconda.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/anaconda.pm b/lib/anaconda.pm index 41f6ea8a..aa89e9c5 100644 --- a/lib/anaconda.pm +++ b/lib/anaconda.pm @@ -165,6 +165,8 @@ sub custom_blivet_add_partition { assert_and_click "anaconda_blivet_mountpoint"; type_safely $args{mountpoint} . "\n"; } + # seems we can get a lost click here if we click too soon + wait_still_screen 3; assert_and_click "anaconda_blivet_btn_ok"; # select "free space" in blivet-gui if it exists, so we could run this function again to add another partition if (check_screen("anaconda_blivet_free_space", 5)) {