From 535d3a66ef89a2e4019385062323a300631938e6 Mon Sep 17 00:00:00 2001 From: Andy Jordan <2226434+andyleejordan@users.noreply.github.com> Date: Tue, 18 Mar 2025 13:05:20 -0700 Subject: [PATCH] Skip PowerShell Preview tests on OneBranch --- PowerShellEditorServices.build.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerShellEditorServices.build.ps1 b/PowerShellEditorServices.build.ps1 index 3e8830088..aeaeec7cf 100644 --- a/PowerShellEditorServices.build.ps1 +++ b/PowerShellEditorServices.build.ps1 @@ -313,7 +313,7 @@ if ($env:GITHUB_ACTIONS) { $PwshPreview = if ($script:IsNix) { "$HOME/.powershell-preview/pwsh" } else { "$env:LOCALAPPDATA/Microsoft/powershell-preview/pwsh.exe" } } -Task TestE2EPreview Build, SetupHelpForTests, { +Task TestE2EPreview -If (-not $env:TF_BUILD) Build, SetupHelpForTests, { Assert (Test-Path $PwshPreview) "PowerShell Preview not found at $PwshPreview, please install it: https://github.com/PowerShell/PowerShell/blob/master/tools/install-powershell.ps1" Set-Location ./test/PowerShellEditorServices.Test.E2E/ $env:PWSH_EXE_NAME = $PwshPreview