1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-21 21:43:08 +00:00

gnome-panel: set update notification timestamp early

If we do it after forcing the clock to 18:30, doing it takes so
long we wind up at 18:32, and that kinda sets the rest of the
test out of whack (we have several needles that assume we start
at 18:30 or 18:31 after the snapshot). So let's set the update
timestamp *before* we force the clock. This will mean it's waay
in the future after we force the clock, but that should still
do the job of avoiding notifications showing up, I hope.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2023-10-14 10:34:01 -07:00
parent b043e99430
commit 22e174069e

View File

@ -7,6 +7,11 @@ use utils;
sub run {
my $self = shift;
# Set the update notification timestamp
# note: this will mean it's waaay in the future compared to the
# fake time we set below and use for the rest of the test, but
# that should do the job fine
set_update_notification_timestamp();
# Go to the root console to set up the test data and necessary stuff.
$self->root_console(tty => 3);
@ -23,8 +28,6 @@ sub run {
script_run("chmod 666 /dev/ttyS0");
# Return to Desktop
desktop_vt();
# Set the update notification timestamp
set_update_notification_timestamp();
# Check that the upper panel shows correct date and time.
assert_screen("panel_datetime");
}