From 129d1316a62430bf066ec9998caf737b6b4159cd Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 12 Oct 2018 21:16:33 -0700 Subject: [PATCH] Fix tty switching for desktop_notifications Lately, we can't be sure the desktop will be on tty1 after we do 'systemctl isolate graphical.target'. For recent Workstation lives it actually shows up on tty2. We could be 'clever' and switch to tty2 on F29+ Workstation lives...but actually it seems like if we just don't do anything, systemd switches us to the correct tty. So let's rely on that, at least as long as it's working. Signed-off-by: Adam Williamson --- tests/desktop_notifications.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/desktop_notifications.pm b/tests/desktop_notifications.pm index dfcf3401..37c7828f 100644 --- a/tests/desktop_notifications.pm +++ b/tests/desktop_notifications.pm @@ -51,7 +51,7 @@ sub run { } } assert_script_run 'systemctl isolate graphical.target'; - send_key 'ctrl-alt-f1'; + # we trust systemd to switch us to the right tty here if (get_var("BOOTFROM")) { assert_screen 'graphical_login'; wait_still_screen 3;