From 80d7746d8a78d627ae290631609b7d111c6227be Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 21 Apr 2026 16:37:24 -0700 Subject: [PATCH] aaa_setup: switch back to console if loginctl dumps us at GDM Signed-off-by: Adam Williamson --- tests/applications/gnome-initial-setup/aaa_setup.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/applications/gnome-initial-setup/aaa_setup.pm b/tests/applications/gnome-initial-setup/aaa_setup.pm index 264ea452..ca6348ec 100644 --- a/tests/applications/gnome-initial-setup/aaa_setup.pm +++ b/tests/applications/gnome-initial-setup/aaa_setup.pm @@ -16,6 +16,8 @@ sub run { # Remove the user clear the system and force the gnome-initial-setup # to start on new boot. assert_script_run("loginctl kill-user $username"); + # that might switch us back to GDM, switch away if so + $self->root_console(tty => 3) if (check_screen 'graphical_login', timeout => 30); assert_script_run("userdel -r $username"); # Reboot the system to trigger GNOME initial setup