Skip to content

Commit

Permalink
[macOS] Update free space test condition to 14 GB (actions#10546)
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-bershel authored Sep 3, 2024
1 parent 89f5712 commit 3926b86
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions images/macos/scripts/tests/System.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 3926b86

Please sign in to comment.