Merge pull request #12240 from actions/lg/fwupd2

Fix fwupd intergration test on Ubuntu 22.04
This commit is contained in:
Lawrence Gripper
2025-05-27 11:50:02 +01:00
committed by GitHub

View File

@@ -9,7 +9,13 @@ Describe "Disk free space" -Skip:(-not [String]::IsNullOrEmpty($env:AGENT_NAME)
Describe "fwupd removed" {
It "Is not present on box" {
$systemctlOutput = & systemctl list-unit-files fwupd-refresh.timer
$systemctlOutput | Should -Match "masked"
$systemctlOutput = & systemctl list-unit fwupd-refresh.timer --no-legend
# When disabled the output looks like this:
# systemctl list-units fwupd-refresh.timer --no-legend
#● fwupd-refresh.timer masked failed failed fwupd-refresh.timer
# When enabled the output looks like this:
# systemctl list-units fwupd-refresh.timer --no-legend
#fwupd-refresh.timer loaded active waiting Refresh fwupd metadata regularly
$systemctlOutput | Should -Not -Match "active"
}
}