mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-24 14:53:09 +00:00
22e174069e
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>
42 lines
1.2 KiB
Perl
42 lines
1.2 KiB
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
|
|
# This part of the suite prepares the environment.
|
|
|
|
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);
|
|
|
|
# As we want to deal with certain elements during testing,
|
|
# we need to set the time and zones, otherwise we would need many needles.
|
|
# Disable the automatic time and zone settings
|
|
script_run("timedatectl set-ntp False");
|
|
# Set the time zone
|
|
script_run("timedatectl set-timezone Europe/Prague");
|
|
# Set the time
|
|
script_run('timedatectl set-time "2023-03-05 18:30:00"');
|
|
# Make serial writable
|
|
script_run("chmod 666 /dev/ttyS0");
|
|
# Return to Desktop
|
|
desktop_vt();
|
|
# Check that the upper panel shows correct date and time.
|
|
assert_screen("panel_datetime");
|
|
}
|
|
|
|
sub test_flags {
|
|
return {fatal => 1, milestone => 1};
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|