Skip to content

Commit

Permalink
MSI: Fix log file name in install-test
Browse files Browse the repository at this point in the history
Since log rotation is introduced at #343, a number suffix is added to
log file name.

td-agent.log ->
td-agent-0.log

Signed-off-by: Takuro Ashie <ashie@clear-code.com>
  • Loading branch information
ashie committed Nov 8, 2021
1 parent 33512e6 commit 9601b13
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions td-agent/msi/install-test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ if ($conf -ne "td-agent\etc\td-agent\td-agent.conf") {
}
Write-Host "Succeeded to find td-agent.conf"

# td-agent.log should not be removed
$conf = (Get-ChildItem -Path "c:\\opt" -Filter "td-agent.log" -Recurse -Name)
if ($conf -ne "td-agent\td-agent.log") {
Write-Host "Failed to find td-agent.log: <${conf}>"
# td-agent-0.log should not be removed
$conf = (Get-ChildItem -Path "c:\\opt" -Filter "td-agent-0.log" -Recurse -Name)
if ($conf -ne "td-agent\td-agent-0.log") {
Write-Host "Failed to find td-agent-0.log: <${conf}>"
[Environment]::Exit(1)
}
Write-Host "Succeeded to find td-agent.log"
Write-Host "Succeeded to find td-agent-0.log"

0 comments on commit 9601b13

Please sign in to comment.