Correct pwsh run (#11486)

This commit is contained in:
Ilya
2020-01-05 12:17:41 +05:00
committed by GitHub
parent 2c0d68c1c2
commit b221c2afa2
22 changed files with 61 additions and 56 deletions
@@ -49,7 +49,7 @@ $null = $ps.AddScript(1).Invoke()
exit
'@
$outputFile = New-Item -Path $TestDrive\output.txt -ItemType File
$process = Start-Process pwsh -ArgumentList $command -PassThru -RedirectStandardOutput $outputFile
$process = Start-Process "$PSHOME/pwsh" -ArgumentList $command -PassThru -RedirectStandardOutput $outputFile
Wait-UntilTrue -sb { $process.HasExited } -TimeoutInMilliseconds 5000 -IntervalInMilliseconds 1000 | Should -BeTrue
$hasExited = $process.HasExited