From 3926b864c36dbf6eecb879b096df5884abcf5b4a Mon Sep 17 00:00:00 2001 From: Erik Bershel <110455084+erik-bershel@users.noreply.github.com> Date: Tue, 3 Sep 2024 22:58:36 +0200 Subject: [PATCH] [macOS] Update free space test condition to 14 GB (#10546) --- images/macos/scripts/tests/System.Tests.ps1 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/images/macos/scripts/tests/System.Tests.ps1 b/images/macos/scripts/tests/System.Tests.ps1 index bc0fd72c995d..206ac3be7600 100644 --- a/images/macos/scripts/tests/System.Tests.ps1 +++ b/images/macos/scripts/tests/System.Tests.ps1 @@ -3,11 +3,12 @@ Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1" $os = Get-OSVersion Describe "Disk free space" { - It "Image has more than 10GB free space" { - # we should have at least 10 GB of free space on macOS images - # https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops#capabilities-and-limitations + It "Image has more than 14GB free space" { + # we should have at least 14 GB of free space on macOS images + # 10GB here: https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops#capabilities-and-limitations + # 14GB here: https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories $freeSpace = (Get-PSDrive "/").Free - $freeSpace | Should -BeGreaterOrEqual 10GB + $freeSpace | Should -BeGreaterOrEqual 14GB } }