未验证 提交 063b7611 编写于 作者: E Eirik Tsarpalis 提交者: GitHub

Merge pull request #125 from dotnet/eirik/fix-httpstress

HttpStress: Fix windows stress runs
......@@ -52,7 +52,6 @@ if ($os -eq "")
# fix up by copying from the bootstrap sdk
function Copy-Aspnetcore-Bits([string] $testhost_path)
{
function find-bootstrap-sdk()
{
if (test-path -PathType container "$COREFX_ROOT_DIR/.dotnet")
......@@ -61,15 +60,19 @@ function Copy-Aspnetcore-Bits([string] $testhost_path)
}
else
{
$dotnet_path = $(which dotnet)
$dotnet_path = $(get-command dotnet).Source
# follow any symlinks if unix
if (which readlink)
try
{
# follow any symlinks if unix
$dotnet_path = $(readlink -f $dotnet_path)
}
catch [System.Management.Automation.CommandNotFoundException]
{
}
$(dirname $dotnet_path)
split-path -Path $dotnet_path
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册