mirror of
https://github.com/actions/runner-images.git
synced 2025-12-18 07:46:57 +00:00
Fix up by using list-unit
This avoids the output containing the preset vendor value.
This commit is contained in:
@@ -9,12 +9,13 @@ Describe "Disk free space" -Skip:(-not [String]::IsNullOrEmpty($env:AGENT_NAME)
|
|||||||
|
|
||||||
Describe "fwupd removed" {
|
Describe "fwupd removed" {
|
||||||
It "Is not present on box" {
|
It "Is not present on box" {
|
||||||
$systemctlOutput = & systemctl list-unit-files fwupd-refresh.timer
|
$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:
|
# When enabled the output looks like this:
|
||||||
#❯ systemctl list-unit-files fwupd-refresh.timer
|
#❯ systemctl list-units fwupd-refresh.timer --no-legend
|
||||||
#UNIT FILE STATE VENDOR PRESET
|
#fwupd-refresh.timer loaded active waiting Refresh fwupd metadata regularly
|
||||||
#fwupd-refresh.timer enabled enabled
|
$systemctlOutput | Should -Not -Match "active"
|
||||||
#1 unit files listed.
|
|
||||||
$systemctlOutput | Should -Not -Match "enabled"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user