mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[Ubuntu] Add predefined variable to skip test in the pipeline (#9153)
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
Describe "Disk free space" {
|
||||
# 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" {
|
||||
$freeSpace = (Get-PSDrive "/").Free
|
||||
$freeSpace | Should -BeGreaterOrEqual 31GB
|
||||
|
||||
Reference in New Issue
Block a user