Skip to content

Commit 31cfdb1

Browse files
committed
chore: Fixing integration tests
1 parent adda4eb commit 31cfdb1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tasks/infra/agent/integrationTests_windows.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +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 $regPath = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Installer'; if (-not (Test-Path $regPath)) { New-Item -Path $regPath -Force | Out-Null }; Set-ItemProperty -Path $regPath -Name DisableMSI -Value 0 -Type DWord -Force
5-
- 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 }
4+
- RUN $p = Start-Process msiexec.exe -ArgumentList '/a','newrelic-infra.msi','/qn','TARGETDIR=C:\' -Wait -PassThru; if ($p.ExitCode -ne 0) { exit $p.ExitCode }
65
log_entry_expected:
76
- Info.*Infra/Agent/Version.*
87
log_entry_not_expected:

0 commit comments

Comments
 (0)