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

Unset 'last time notification shown' setting for KDE (#2178311)

It looks like the desktop_notifications postinstall test on KDE
on F38 is failing currently because the notification is being
shown during the install_default_upload test that precedes it,
so KDE decides not to show it again yet. So, unset the setting
that stores the timestamp of the last time the notification was
shown. This is similar to a thing we already do for GNOME above.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2023-03-27 17:35:22 -07:00
parent 5c62a909c8
commit a6e5700854

View File

@ -57,6 +57,19 @@ sub run {
console_login(user => 'root', password => get_var('ROOT_PASSWORD', 'weakpassword')); console_login(user => 'root', password => get_var('ROOT_PASSWORD', 'weakpassword'));
} }
} }
if ($desktop eq 'kde' && get_var("BOOTFROM")) {
# need to login as user for this
script_run 'exit', 0;
console_login(user => get_var('USER_LOGIN', 'test'), password => get_var('USER_PASSWORD', 'weakpassword'));
# unset the 'last time notification was shown' setting in case
# it got shown during install_default_upload:
# https://bugzilla.redhat.com/show_bug.cgi?id=2178311
script_run 'kwriteconfig5 --file PlasmaDiscoverUpdates --group Global --key LastNotificationTime --delete', 0;
wait_still_screen 5;
script_run 'exit', 0;
console_login(user => 'root', password => get_var('ROOT_PASSWORD', 'weakpassword'));
}
# can't use assert_script_run here as long as we're on tty1 # can't use assert_script_run here as long as we're on tty1
# we don't use isolate per: # we don't use isolate per:
# https://github.com/systemd/systemd/issues/26364#issuecomment-1424900066 # https://github.com/systemd/systemd/issues/26364#issuecomment-1424900066