From 52019144a83d5d81e4f9f3e3caf454251c20e614 Mon Sep 17 00:00:00 2001 From: lawrencegripper Date: Fri, 23 May 2025 14:18:25 +0100 Subject: [PATCH] Fix fwupd intergration test on Ubuntu 22.04 See: - https://github.com/actions/runner-images/pull/12225#issuecomment-2904383955 --- images/ubuntu/scripts/tests/System.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/ubuntu/scripts/tests/System.Tests.ps1 b/images/ubuntu/scripts/tests/System.Tests.ps1 index f3d034831..2204199c0 100644 --- a/images/ubuntu/scripts/tests/System.Tests.ps1 +++ b/images/ubuntu/scripts/tests/System.Tests.ps1 @@ -10,6 +10,6 @@ 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 -eq $null) -or ($systemctlOutput | Should -Match "masked") } }