1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-05-14 20:51:34 +00:00
os-autoinst-distri-fedora/tests/apps_gnome_preset.pm
Lukáš Růžička 891868e77a Avoid update notifications in start-stop tests.
Sometimes, update notification would pop up during the testing
and prevent the needles from being matched correctly.
The addition to the code makes the notifications go away for updates.
2025-03-05 14:16:08 +01:00

27 lines
731 B
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
# This test tests if Terminal starts and uses it to change desktop settings for all the following tests.
# Therefore, if you want to use all the tests from the APPS family, this should be the very first to do.
sub run {
my $self = shift;
# Change the background to black.
solidify_wallpaper;
# Surpress the update notification
set_update_notification_timestamp();
}
# If this test fails, the others will probably start failing too,
# so there is no need to continue.
# Also, when subsequent tests fail, the suite will revert to this state for further testing.
sub test_flags {
return {fatal => 1, milestone => 1};
}
1;
# vim: set sw=4 et: