mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-26 03:17:29 +08:00
15 lines
639 B
PowerShell
15 lines
639 B
PowerShell
# 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 enough free space" {
|
|
$freeSpace = (Get-PSDrive "/").Free
|
|
$freeSpace | Should -BeGreaterOrEqual 17GB
|
|
}
|
|
}
|
|
|
|
Describe "Apparmor is disabled" {
|
|
It "Apparmor is disabled" {
|
|
systemctl is-active apparmor | Should -Be "inactive"
|
|
}
|
|
}
|