未验证 提交 66dcd8ac 编写于 作者: M msftbot[bot] 提交者: GitHub

Merge pull request #39691 from dotnet/merges/release/dev16.4-to-master

Merge release/dev16.4 to master
......@@ -331,9 +331,6 @@ function SetVisualStudioBootstrapperBuildArgs() {
# Core function for running our unit / integration tests tests
function TestUsingOptimizedRunner() {
# Capture the Path so we can revert it for integration tests
$originalPath = $env:PATH
# Tests need to locate .NET Core SDK
$dotnet = InitializeDotNetCli
......@@ -420,26 +417,9 @@ function TestUsingOptimizedRunner() {
$args += " $dll"
}
if ($testVsi) {
# Capture the Environment variables altered by `InitializeDotNetCli` so we can revert to them
$alteredDotNetMultiLevelLookup = $env:DOTNET_MULTILEVEL_LOOKUP
$alteredPath = $env:PATH
# Resolve runtime, shared framework, or SDK from other locations for integration tests
$env:DOTNET_MULTILEVEL_LOOKUP = $null
$env:PATH = $originalPath
}
try {
Exec-Console $runTests $args
}
finally {
if ($testVsi) {
# Revert the environment variables to the state `InitializeDotNetCli` left them in
$env:DOTNET_MULTILEVEL_LOOKUP = $alteredDotNetMultiLevelLookup
$env:PATH = $alteredPath
}
} finally {
Get-Process "xunit*" -ErrorAction SilentlyContinue | Stop-Process
if ($testIOperation) {
Remove-Item env:\ROSLYN_TEST_IOPERATION
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册