Repository: archiva Updated Branches: refs/heads/citest e2bb56fee -> cc6420e61
Fix Project: http://git-wip-us.apache.org/repos/asf/archiva/repo Commit: http://git-wip-us.apache.org/repos/asf/archiva/commit/cc6420e6 Tree: http://git-wip-us.apache.org/repos/asf/archiva/tree/cc6420e6 Diff: http://git-wip-us.apache.org/repos/asf/archiva/diff/cc6420e6 Branch: refs/heads/citest Commit: cc6420e6126e307ce9a97695a00029aef85a96ff Parents: e2bb56f Author: Martin Stockhammer <[email protected]> Authored: Sun Apr 30 21:06:59 2017 +0200 Committer: Martin Stockhammer <[email protected]> Committed: Sun Apr 30 21:06:59 2017 +0200 ---------------------------------------------------------------------- src/ci/scripts/cleanup.ps1 | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/archiva/blob/cc6420e6/src/ci/scripts/cleanup.ps1 ---------------------------------------------------------------------- diff --git a/src/ci/scripts/cleanup.ps1 b/src/ci/scripts/cleanup.ps1 index 1055a37..90228c6 100644 --- a/src/ci/scripts/cleanup.ps1 +++ b/src/ci/scripts/cleanup.ps1 @@ -37,22 +37,14 @@ if ($Verbose) foreach ($procName in $seleniumProcesses) { Write-Output "Filter: name = '$procName'" - $processes = Get-WmiObject Win32_Process -Filter "name = '$procName'" | Where-Object {$_.GetOwner().User -eq $currentUser } - $processes2 = Get-WmiObject Win32_Process -Filter "name = '$procName'" + $processes = Get-WmiObject Win32_Process -Filter "name = '$procName'" | Where-Object {$_.GetOwner().User -eq $currentUser } | Where-Object {$_.CommandLine -match "selenium-server"} if ($Verbose) { Write-Output "Processes $processes" - Write-Output "Processes2 $processes2" } foreach($proc in $processes) { - if($proc.CommandLine.Contains("selenium-server")) - { - Write-Host "stopping proccess $($proc.ProcessId) with $($proc.ThreadCount) threads; $($proc.CommandLine.Substring(0, 50))..." - Stop-Process -F $proc.ProcessId - } else - { - Write-Host "skipping proccess $($proc.ProcessId) with $($proc.ThreadCount) threads; $($proc.CommandLine.Substring(0, 50))..." - } + Write-Host "stopping proccess $($proc.ProcessId) with $($proc.ThreadCount) threads; $($proc.CommandLine.Substring(0, 50))..." + Stop-Process -F $proc.ProcessId } }
