Skip to content

Commit

Permalink
Fix lint warnings
Browse files Browse the repository at this point in the history
Use `Push-Location` and `Pop-Location` to resolve PowerShell lint warnings in Visual Studio Code.
  • Loading branch information
martincostello committed Jan 26, 2024
1 parent d6ce247 commit 452a25a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/test-aot-compatibility.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if ($LastExitCode -ne 0)
Write-Host $publishOutput
}

pushd $rootDirectory/test/OpenTelemetry.AotCompatibility.TestApp/bin/Release/$targetNetFramework/$runtime
Push-Location $rootDirectory/test/OpenTelemetry.AotCompatibility.TestApp/bin/Release/$targetNetFramework/$runtime

Write-Host "Executing test App..."
$app
Expand All @@ -37,7 +37,7 @@ if ($LastExitCode -ne 0)
Write-Host "There was an error while executing AotCompatibility Test App. LastExitCode is:", $LastExitCode
}

popd
Pop-Location

$testPassed = 0
if ($actualWarningCount -ne $expectedWarningCount)
Expand Down

0 comments on commit 452a25a

Please sign in to comment.