From 37e1763ffc8ae71ffd84ec7bfbf56185b84aa880 Mon Sep 17 00:00:00 2001 From: martincostello Date: Tue, 23 Jan 2024 10:03:39 +0000 Subject: [PATCH] Fix lint warnings Use `Push-Location` and `Pop-Location` to resolve PowerShell lint warnings in Visual Studio Code. --- build/test-aot-compatibility.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/test-aot-compatibility.ps1 b/build/test-aot-compatibility.ps1 index 4a5d6cb941..1f9db2c27a 100644 --- a/build/test-aot-compatibility.ps1 +++ b/build/test-aot-compatibility.ps1 @@ -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 @@ -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)