From 939f19a0b4be1505eafb92a8865b1ad4aca12893 Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Tue, 28 Apr 2026 12:03:01 +0200 Subject: [PATCH] Always go to root console --- tests/applications/gnome-initial-setup/aaa_setup.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/applications/gnome-initial-setup/aaa_setup.pm b/tests/applications/gnome-initial-setup/aaa_setup.pm index 419c28d8..30779765 100644 --- a/tests/applications/gnome-initial-setup/aaa_setup.pm +++ b/tests/applications/gnome-initial-setup/aaa_setup.pm @@ -17,7 +17,8 @@ sub run { # to start on new boot. assert_script_run("loginctl kill-user $username", timeout => 120); # closing the user might switch us back to GDM, switch away if so - $self->root_console(tty => 3) if (check_screen 'graphical_login', timeout => 30); + #$self->root_console(tty => 3) if (check_screen 'graphical_login', timeout => 30); + $self->root_console(tty => 3); # check until all user processes are terminated, then proceed and delete the user assert_script_run("for i in {1..30}; do ! pgrep -u $username >/dev/null && exit 0; sleep 1; done; pgrep -au $username; exit 1"); assert_script_run("userdel -r $username");