diff options
| author | Stefan Boberg <[email protected]> | 2026-04-23 18:16:57 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2026-04-23 18:16:57 +0200 |
| commit | 0232b991cd7d8e3a2114ea30e4591dd3e7b65c36 (patch) | |
| tree | 94730e7594fd09ae1fa820391ce311f6daf13905 /scripts/test_scripts/kill-test-processes.ps1 | |
| parent | Fix forward declaration order for s_GotSigWinch and SigWinchHandler (diff) | |
| parent | trace: declare Region event name fields as AnsiString (#1012) (diff) | |
| download | archived-zen-sb/zen-help.tar.xz archived-zen-sb/zen-help.zip | |
Merge branch 'main' into sb/zen-helpsb/zen-help
- Combine HelpCommand (this branch) with HistoryCommand (main) in zen CLI dispatcher
- Keep filter-aware TuiPickOne rewrite; adopt main's ASCII arrow glyphs in doc comment
Diffstat (limited to 'scripts/test_scripts/kill-test-processes.ps1')
| -rw-r--r-- | scripts/test_scripts/kill-test-processes.ps1 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/test_scripts/kill-test-processes.ps1 b/scripts/test_scripts/kill-test-processes.ps1 new file mode 100644 index 000000000..0668a5319 --- /dev/null +++ b/scripts/test_scripts/kill-test-processes.ps1 @@ -0,0 +1,19 @@ +# Kill leftover CI test processes (zenserver, minio, nomad, consul) whose +# executable lives under the given build directory. Windows counterpart of +# kill-test-processes.sh; see that file for rationale. +# +# Usage: kill-test-processes.ps1 -Label <label> -BuildDir <path> + +param( + [Parameter(Mandatory=$true)][string]$Label, + [Parameter(Mandatory=$true)][string]$BuildDir +) + +foreach ($name in @('zenserver', 'minio', 'nomad', 'consul')) { + $procs = Get-Process -Name $name -ErrorAction SilentlyContinue | + Where-Object { $_.Path -and $_.Path.StartsWith($BuildDir, [System.StringComparison]::OrdinalIgnoreCase) } + foreach ($p in $procs) { + Write-Host "Killing $Label $name (PID $($p.Id)): $($p.Path)" + $p | Stop-Process -Force -ErrorAction SilentlyContinue + } +} |