@@ -157,9 +157,9 @@ namespace Microsoft.PowerShell.EditorServices.Hosting
157157}
158158
159159Task SetupHelpForTests {
160- if (-not (Get-Help Write-Host ).Examples ) {
160+ if (-not (Get-Help Microsoft.PowerShell. Management\Get-Process ).Description ) {
161161 Write-Host " Updating help for tests."
162- Update-Help - Module Microsoft.PowerShell.Utility - Force - Scope CurrentUser
162+ Update-Help - Module Microsoft.PowerShell.Management , Microsoft.PowerShell. Utility - Force - Scope CurrentUser
163163 }
164164}
165165
@@ -177,11 +177,11 @@ Task Build FindDotNet, CreateBuildInfo, {
177177
178178Task Test TestServer, TestE2E, TestConstrainedLanguageMode
179179
180- Task TestServer TestServerWinPS, TestServerPS72, TestServerPS73
180+ Task TestServer SetupHelpForTests , TestServerWinPS, TestServerPS72, TestServerPS73
181181
182- Task TestE2E TestE2EPwsh, TestE2EWinPS
182+ Task TestE2E SetupHelpForTests , TestE2EPwsh, TestE2EWinPS
183183
184- Task TestServerWinPS - If (-not $script :IsNix ) Build, SetupHelpForTests , {
184+ Task TestServerWinPS - If (-not $script :IsNix ) Build, {
185185 Set-Location .\test\PowerShellEditorServices.Test\
186186 # TODO: See https://github.com/dotnet/sdk/issues/18353 for x64 test host
187187 # that is debuggable! If architecture is added, the assembly path gets an
@@ -190,29 +190,29 @@ Task TestServerWinPS -If (-not $script:IsNix) Build, SetupHelpForTests, {
190190 Invoke-BuildExec { & dotnet $script :dotnetTestArgs $script :NetRuntime.Desktop }
191191}
192192
193- Task TestServerPS72 Build, SetupHelpForTests , {
193+ Task TestServerPS72 Build, {
194194 Set-Location .\test\PowerShellEditorServices.Test\
195195 Invoke-BuildExec { & dotnet $script :dotnetTestArgs $script :NetRuntime.PS72 }
196196}
197197
198- Task TestServerPS73 Build, SetupHelpForTests , {
198+ Task TestServerPS73 Build, {
199199 Set-Location .\test\PowerShellEditorServices.Test\
200200 Invoke-BuildExec { & dotnet $script :dotnetTestArgs $script :NetRuntime.PS73 }
201201}
202202
203- Task TestE2EPwsh Build, SetupHelpForTests , {
203+ Task TestE2EPwsh Build, {
204204 Set-Location .\test\PowerShellEditorServices.Test.E2E\
205205 $env: PWSH_EXE_NAME = " pwsh"
206206 Invoke-BuildExec { & dotnet $script :dotnetTestArgs $script :NetRuntime.PS73 }
207207}
208208
209- Task TestE2EWinPS - If (-not $script :IsNix ) Build, SetupHelpForTests , {
209+ Task TestE2EWinPS - If (-not $script :IsNix ) Build, {
210210 Set-Location .\test\PowerShellEditorServices.Test.E2E\
211211 $env: PWSH_EXE_NAME = " powershell"
212212 Invoke-BuildExec { & dotnet $script :dotnetTestArgs $script :NetRuntime.PS73 }
213213}
214214
215- Task TestConstrainedLanguageMode - If (-not $script :IsNix ) Build, SetupHelpForTests , {
215+ Task TestConstrainedLanguageMode - If (-not $script :IsNix ) Build, {
216216 Set-Location .\test\PowerShellEditorServices.Test.E2E\
217217
218218 if (-not [Security.Principal.WindowsIdentity ]::GetCurrent().Owner.IsWellKnown(" BuiltInAdministratorsSid" )) {
0 commit comments