Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/windows-cli-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ jobs:
- name: "[powershell] --help with timeout"
shell: powershell
run: |
$proc = Start-Process -FilePath $env:BINARY -ArgumentList "--help" -PassThru -NoNewWindow
$psi = New-Object System.Diagnostics.ProcessStartInfo
$psi.FileName = $env:BINARY
$psi.Arguments = "--help"
$psi.UseShellExecute = $false
$proc = [System.Diagnostics.Process]::Start($psi)
Comment on lines +126 to +130
if (-Not $proc.WaitForExit(30000)) {
$proc.Kill()
throw "TIMEOUT: --help hung for 30s in Windows PowerShell"
Expand All @@ -134,7 +138,11 @@ jobs:
- name: "[powershell] version with timeout"
shell: powershell
run: |
$proc = Start-Process -FilePath $env:BINARY -ArgumentList "version" -PassThru -NoNewWindow
$psi = New-Object System.Diagnostics.ProcessStartInfo
$psi.FileName = $env:BINARY
$psi.Arguments = "version"
$psi.UseShellExecute = $false
$proc = [System.Diagnostics.Process]::Start($psi)
Comment on lines +141 to +145
if (-Not $proc.WaitForExit(30000)) {
$proc.Kill()
throw "TIMEOUT: version hung for 30s in Windows PowerShell"
Expand Down