Update images/ubuntu/scripts/tests/System.Tests.ps1
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
co-authored by
Copilot
parent
52019144a8
commit
a1cf69345e
@@ -10,6 +10,11 @@ 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-files fwupd-refresh.timer
|
||||||
($systemctlOutput -eq $null) -or ($systemctlOutput | Should -Match "masked")
|
if ($systemctlOutput -eq $null) {
|
||||||
|
# Service not installed, test passes
|
||||||
|
return
|
||||||
|
} else {
|
||||||
|
$systemctlOutput | Should -Match "masked"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user