Skip to content

Commit

Permalink
msi test: follow changed path
Browse files Browse the repository at this point in the history
Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
  • Loading branch information
kenhys committed Jul 5, 2023
1 parent 4a73051 commit 2bca50e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions fluent-package/msi/install-test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ if ($exitcode -ne 0) {
}
Write-Host "Succeeded to uninstall ${name}"

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

0 comments on commit 2bca50e

Please sign in to comment.