From 252013fe3ad41522d39b5a046f7880b89300f50d Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 14 Apr 2020 12:10:02 -0700 Subject: [PATCH] Tweak desktop_notifications to work around #1821499 (again) ...this one should really work! Signed-off-by: Adam Williamson --- tests/desktop_notifications.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/desktop_notifications.pm b/tests/desktop_notifications.pm index 9faa2ae0..58113e6e 100644 --- a/tests/desktop_notifications.pm +++ b/tests/desktop_notifications.pm @@ -21,7 +21,8 @@ sub run { do_bootloader(postinstall=>0, params=>'3'); } boot_to_login_screen; - $self->root_console(tty=>3); + # use tty1 to avoid RHBZ #1821499 on F32 Workstation live + $self->root_console(tty=>1); # ensure we actually have some package updates available prepare_test_packages; if ($desktop eq 'gnome') { @@ -50,7 +51,8 @@ sub run { console_login(user=>'root', password=>get_var('ROOT_PASSWORD', 'weakpassword')); } } - assert_script_run 'systemctl isolate graphical.target'; + # can't use assert_script_run here as long as we're on tty1 + type_string "systemctl isolate graphical.target\n"; # we trust systemd to switch us to the right tty here if (get_var("BOOTFROM")) { assert_screen 'graphical_login';