1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-25 07:13:09 +00:00

Tweak desktop_notifications to work around #1821499 (again)

...this one should really work!

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-04-14 12:10:02 -07:00
parent 19677de20a
commit 252013fe3a

View File

@ -21,7 +21,8 @@ sub run {
do_bootloader(postinstall=>0, params=>'3'); do_bootloader(postinstall=>0, params=>'3');
} }
boot_to_login_screen; 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 # ensure we actually have some package updates available
prepare_test_packages; prepare_test_packages;
if ($desktop eq 'gnome') { if ($desktop eq 'gnome') {
@ -50,7 +51,8 @@ sub run {
console_login(user=>'root', password=>get_var('ROOT_PASSWORD', 'weakpassword')); 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 # we trust systemd to switch us to the right tty here
if (get_var("BOOTFROM")) { if (get_var("BOOTFROM")) {
assert_screen 'graphical_login'; assert_screen 'graphical_login';