From 8028586183a4b1ca6bb4a5a37d3d91c2c3f2c3ff Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 21 Jun 2024 09:15:01 -0700 Subject: [PATCH] text mode: handle the "use VNC instead?" question going away Intentionally or not, a recent anaconda change made it so the "text mode sucks, use VNC instead?" question is no longer ever shown - https://bugzilla.redhat.com/show_bug.cgi?id=2293672 . So, we should handle the flow where we just go straight to the hub. If they decide this was intentional and kill the question for good we can drop the path that handles it. Signed-off-by: Adam Williamson --- tests/_boot_to_anaconda.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/_boot_to_anaconda.pm b/tests/_boot_to_anaconda.pm index 87b02b8b..43ccdc20 100644 --- a/tests/_boot_to_anaconda.pm +++ b/tests/_boot_to_anaconda.pm @@ -132,10 +132,11 @@ sub run { unless (wait_serial "Installation") { die "Text version of Anaconda has not started."; } } else { - assert_screen "anaconda_use_text_mode", 300; - type_string "2\n"; - # wait for text version of Anaconda main hub - assert_screen "anaconda_main_hub_text", 300; + assert_screen ["anaconda_use_text_mode", "anaconda_main_hub_text"], 300; + if (match_has_tag "anaconda_use_text_mode") { + type_string "2\n"; + assert_screen "anaconda_main_hub_text", 60; + } } } else {