From 1f7e5ebe208053ee03dba315772e98f401d474e6 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 13 Dec 2018 15:14:55 -0800 Subject: [PATCH] Attempt a workaround for RHBZ#1659266 This is breaking the memory_check tests. I just reproduced it manually and the UI *does* come back to life if you wait some time; let's see if we can work around the bug this way. Signed-off-by: Adam Williamson --- tests/_do_install_and_reboot.pm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/_do_install_and_reboot.pm b/tests/_do_install_and_reboot.pm index 827bc110..d25d4546 100644 --- a/tests/_do_install_and_reboot.pm +++ b/tests/_do_install_and_reboot.pm @@ -32,7 +32,15 @@ sub run { my $root_password = get_var("ROOT_PASSWORD") || "weakpassword"; unless (get_var("INSTALLER_NO_ROOT")) { assert_and_click "anaconda_install_root_password"; - assert_screen "anaconda_install_root_password_screen"; + if (get_var("MEMCHECK")) { + # work around https://bugzilla.redhat.com/show_bug.cgi?id=1659266 + unless (check_screen "anaconda_install_root_password_screen") { + record_soft_failure "UI may be frozen due to brc#1659266"; + assert_screen "anaconda_install_root_password_screen", 300; + } + else { + assert_screen "anaconda_install_root_password_screen"; + } # wait out animation wait_still_screen 2; desktop_switch_layout("ascii", "anaconda") if (get_var("SWITCHED_LAYOUT"));