[Ubuntu] reduce disks size in packer template (#9251)

This commit is contained in:
Mikhail Koliada
2024-01-30 13:05:32 +01:00
committed by GitHub
parent 6308849b25
commit 3243ea36ef
4 changed files with 5 additions and 5 deletions

View File

@@ -1,8 +1,8 @@
# The $env:AGENT_NAME and $env:RUNNER_NAME are predefined variables for the ADO pipelines and for the GitHub actions respectively.
# If the test is running on the ADO pipeline or on the GitHub actions, the test will be skipped
Describe "Disk free space" -Skip:(-not [String]::IsNullOrEmpty($env:AGENT_NAME) -or -not [String]::IsNullOrEmpty($env:RUNNER_NAME)) {
It "Image has more than 31GB free space" {
It "Image has enough free space" {
$freeSpace = (Get-PSDrive "/").Free
$freeSpace | Should -BeGreaterOrEqual 31GB
$freeSpace | Should -BeGreaterOrEqual 17GB
}
}