mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Correct pwsh run (#11486)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user