mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-12-21 18:03:11 +00:00
Update cockpit autoupdate test for new dnf5 service
The service cockpit enables is different when it detects dnf5, since cockpit 317. Let's just make this an F40/F41 boundary thing, and add the cockpit 317 update as a workaround for F41 until it goes stable. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
af06ac0809
commit
f14200e50d
@ -477,7 +477,7 @@ sub get_workarounds {
|
||||
"38" => [],
|
||||
"39" => [],
|
||||
"40" => [],
|
||||
"41" => [],
|
||||
"41" => ["FEDORA-2024-fa260c31e8"],
|
||||
);
|
||||
my $advortasks = $workarounds{$version};
|
||||
return @$advortasks;
|
||||
|
@ -32,11 +32,14 @@ sub run {
|
||||
# Quit Cockpit
|
||||
quit_firefox;
|
||||
|
||||
# Check that the dnf-automatic service has started
|
||||
assert_script_run "systemctl is-active dnf-automatic-install.timer";
|
||||
# this is a dnf4 vs. dnf5 thing
|
||||
my $relnum = get_release_number;
|
||||
my $service = $relnum > 40 ? "dnf5-automatic" : "dnf-automatic-install";
|
||||
# Check that the service has started
|
||||
assert_script_run "systemctl is-active ${service}.timer";
|
||||
|
||||
# Check that it is scheduled correctly
|
||||
validate_script_output "systemctl show dnf-automatic-install.timer | grep TimersCalendar", sub { $_ =~ "06:00:00" };
|
||||
validate_script_output "systemctl show ${service}.timer | grep TimersCalendar", sub { $_ =~ "06:00:00" };
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
|
Loading…
Reference in New Issue
Block a user