Repository: archiva Updated Branches: refs/heads/citest cc6420e61 -> 4b5959c3c
Fixed output Project: http://git-wip-us.apache.org/repos/asf/archiva/repo Commit: http://git-wip-us.apache.org/repos/asf/archiva/commit/4b5959c3 Tree: http://git-wip-us.apache.org/repos/asf/archiva/tree/4b5959c3 Diff: http://git-wip-us.apache.org/repos/asf/archiva/diff/4b5959c3 Branch: refs/heads/citest Commit: 4b5959c3cb9102b83e169a31b1adfec1ea84a4f8 Parents: cc6420e Author: Martin Stockhammer <[email protected]> Authored: Sun Apr 30 21:14:09 2017 +0200 Committer: Martin Stockhammer <[email protected]> Committed: Sun Apr 30 21:14:09 2017 +0200 ---------------------------------------------------------------------- src/ci/scripts/cleanup.ps1 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/archiva/blob/4b5959c3/src/ci/scripts/cleanup.ps1 ---------------------------------------------------------------------- diff --git a/src/ci/scripts/cleanup.ps1 b/src/ci/scripts/cleanup.ps1 index 90228c6..2417869 100644 --- a/src/ci/scripts/cleanup.ps1 +++ b/src/ci/scripts/cleanup.ps1 @@ -36,25 +36,26 @@ 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 } | Where-Object {$_.CommandLine -match "selenium-server"} if ($Verbose) { - Write-Output "Processes $processes" + Write-Output "Filter: name = '$procName'" } foreach($proc in $processes) { - Write-Host "stopping proccess $($proc.ProcessId) with $($proc.ThreadCount) threads; $($proc.CommandLine.Substring(0, 50))..." + Write-Output "stopping proccess $($proc.ProcessId) with $($proc.ThreadCount) threads; $($proc.CommandLine.Substring(0, 50))..." Stop-Process -F $proc.ProcessId } } foreach ($procName in $Browsers) { - Write-Output "Filter: name = '$procName'" $processes = Get-WmiObject Win32_Process -Filter "name = '$procName'" | Where-Object {$_.GetOwner().User -eq $currentUser } + if ($Verbose) { + Write-Output "Filter: name = '$procName'" + } foreach($proc in $processes) { - Write-Host "stopping proccess $($proc.ProcessId) with $($proc.ThreadCount) threads; $($proc.CommandLine.Substring(0, 50))..." + Write-Output "stopping proccess $($proc.ProcessId) with $($proc.ThreadCount) threads; $($proc.CommandLine.Substring(0, 50))..." Stop-Process -F $proc.ProcessId } }
