Skip to content

Commit

Permalink
hack/ci/windows.ps1: stop tailing logs after stopping the daemon
Browse files Browse the repository at this point in the history
There's already a step in  "Nuke Everything", but lets' stop it
after stopping the daemon as well

Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Sep 7, 2019
1 parent 4ce0402 commit e1636ad
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion hack/ci/windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,8 @@ Try {

# Start tailing the daemon under test if the command is installed
if ($null -ne (Get-Command "tail" -ErrorAction SilentlyContinue)) {
$tail = start-process "tail" -ArgumentList "-f $env:TEMP\dut.out" -ErrorAction SilentlyContinue
Write-Host -ForegroundColor green "INFO: Start tailing logs of the daemon under tests"
$tail = Start-Process "tail" -ArgumentList "-f $env:TEMP\dut.out" -PassThru -ErrorAction SilentlyContinue
}

# Verify we can get the daemon under test to respond
Expand Down Expand Up @@ -944,6 +945,12 @@ Try {
Remove-Item "$env:TEMP\docker.pid" -force -ErrorAction SilentlyContinue
}

# Stop the tail process (if started)
if ($null -ne $tail) {
Write-Host -ForegroundColor green "INFO: Stop tailing logs of the daemon under tests"
Stop-Process -InputObject $tail -Force
}

Write-Host -ForegroundColor Green "INFO: executeCI.ps1 Completed successfully at $(Get-Date)."
}
Catch [Exception] {
Expand Down

0 comments on commit e1636ad

Please sign in to comment.