@@ -157,9 +157,9 @@ namespace Microsoft.PowerShell.EditorServices.Hosting
157
157
}
158
158
159
159
Task SetupHelpForTests {
160
- if (-not (Get-Help Write-Host ).Examples ) {
160
+ if (-not (Get-Help Microsoft.PowerShell. Management\Get-Process ).Description ) {
161
161
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
163
163
}
164
164
}
165
165
@@ -177,11 +177,11 @@ Task Build FindDotNet, CreateBuildInfo, {
177
177
178
178
Task Test TestServer, TestE2E, TestConstrainedLanguageMode
179
179
180
- Task TestServer TestServerWinPS, TestServerPS72, TestServerPS73
180
+ Task TestServer SetupHelpForTests , TestServerWinPS, TestServerPS72, TestServerPS73
181
181
182
- Task TestE2E TestE2EPwsh, TestE2EWinPS
182
+ Task TestE2E SetupHelpForTests , TestE2EPwsh, TestE2EWinPS
183
183
184
- Task TestServerWinPS - If (-not $script :IsNix ) Build, SetupHelpForTests , {
184
+ Task TestServerWinPS - If (-not $script :IsNix ) Build, {
185
185
Set-Location .\test\PowerShellEditorServices.Test\
186
186
# TODO: See https://github.com/dotnet/sdk/issues/18353 for x64 test host
187
187
# that is debuggable! If architecture is added, the assembly path gets an
@@ -190,29 +190,29 @@ Task TestServerWinPS -If (-not $script:IsNix) Build, SetupHelpForTests, {
190
190
Invoke-BuildExec { & dotnet $script :dotnetTestArgs $script :NetRuntime.Desktop }
191
191
}
192
192
193
- Task TestServerPS72 Build, SetupHelpForTests , {
193
+ Task TestServerPS72 Build, {
194
194
Set-Location .\test\PowerShellEditorServices.Test\
195
195
Invoke-BuildExec { & dotnet $script :dotnetTestArgs $script :NetRuntime.PS72 }
196
196
}
197
197
198
- Task TestServerPS73 Build, SetupHelpForTests , {
198
+ Task TestServerPS73 Build, {
199
199
Set-Location .\test\PowerShellEditorServices.Test\
200
200
Invoke-BuildExec { & dotnet $script :dotnetTestArgs $script :NetRuntime.PS73 }
201
201
}
202
202
203
- Task TestE2EPwsh Build, SetupHelpForTests , {
203
+ Task TestE2EPwsh Build, {
204
204
Set-Location .\test\PowerShellEditorServices.Test.E2E\
205
205
$env: PWSH_EXE_NAME = " pwsh"
206
206
Invoke-BuildExec { & dotnet $script :dotnetTestArgs $script :NetRuntime.PS73 }
207
207
}
208
208
209
- Task TestE2EWinPS - If (-not $script :IsNix ) Build, SetupHelpForTests , {
209
+ Task TestE2EWinPS - If (-not $script :IsNix ) Build, {
210
210
Set-Location .\test\PowerShellEditorServices.Test.E2E\
211
211
$env: PWSH_EXE_NAME = " powershell"
212
212
Invoke-BuildExec { & dotnet $script :dotnetTestArgs $script :NetRuntime.PS73 }
213
213
}
214
214
215
- Task TestConstrainedLanguageMode - If (-not $script :IsNix ) Build, SetupHelpForTests , {
215
+ Task TestConstrainedLanguageMode - If (-not $script :IsNix ) Build, {
216
216
Set-Location .\test\PowerShellEditorServices.Test.E2E\
217
217
218
218
if (-not [Security.Principal.WindowsIdentity ]::GetCurrent().Owner.IsWellKnown(" BuiltInAdministratorsSid" )) {
0 commit comments