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

Compare commits

...

2 Commits

Author SHA1 Message Date
Adam Williamson
1de4a19bfe Update akonadi migration notification needle for current KDE
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-03-27 17:39:28 -07:00
Adam Williamson
a6e5700854 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>
2023-03-27 17:35:22 -07:00
3 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,22 @@
{
"area": [
{
"type": "match",
"width": 128,
"ypos": 390,
"xpos": 580,
"height": 16
},
{
"width": 15,
"ypos": 364,
"xpos": 976,
"height": 15,
"type": "match"
}
],
"properties": [],
"tags": [
"akonadi_migration_notification"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 431 KiB

View File

@ -57,6 +57,19 @@ sub run {
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
# we don't use isolate per:
# https://github.com/systemd/systemd/issues/26364#issuecomment-1424900066