Merge pull request #39804 from thaJeztah/defender_warning_only

integration: windows.ps1: turn defender error into a warning
This commit is contained in:
Kirill Kolyshkin 2019-09-02 18:34:48 +03:00 committed by GitHub
commit 1a117b8b5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -266,7 +266,7 @@ Try {
}
}
} Catch {}
if ($defender) { Throw "ERROR: Windows Defender real time protection must be disabled for integration tests" }
if ($defender) { Write-Host -ForegroundColor Magenta "WARN: Windows Defender real time protection is enabled, which may cause some integration tests to fail" }
# Make sure SOURCES_DRIVE is set
if ($null -eq $env:SOURCES_DRIVE) { Throw "ERROR: Environment variable SOURCES_DRIVE is not set" }