Skip to content

Commit a5f8a95

Browse files
committed
chore: Get logging on msi failure
1 parent fd91867 commit a5f8a95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tasks/infra/agent/integrationTests_windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- test_name: InfrastructureVersionPresentWindows
22
dockerfile_lines:
33
- ADD https://download.newrelic.com/infrastructure_agent/windows/newrelic-infra.msi newrelic-infra.msi
4-
- RUN ["msiexec.exe", "/qn", "/i", "newrelic-infra.msi"]
4+
- RUN $p = Start-Process msiexec.exe -ArgumentList '/qn','/i','newrelic-infra.msi','/l*v','C:\install.log' -Wait -PassThru; if (Test-Path C:\install.log) { Get-Content C:\install.log } else { Write-Host 'no MSI log produced' }; if ($null -ne $p.ExitCode -and $p.ExitCode -ne 0) { exit $p.ExitCode }
55
log_entry_expected:
66
- Info.*Infra/Agent/Version.*
77
log_entry_not_expected:

0 commit comments

Comments
 (0)