[release/v7.5] Fix updatable help test for new content (#25944)

Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
This commit is contained in:
PowerShell Team Bot
2025-08-29 23:47:05 +00:00
committed by GitHub
co-authored by Aditya Patwardhan
parent 0bc793fc13
commit b69a479806
3 changed files with 3 additions and 3 deletions
@@ -47,7 +47,7 @@ else
}
# default values for system modules
[string] $myUICulture = 'en-US'
[string] $myUICulture = 'en-US'
[string] $HelpInstallationPath = Join-Path $PSHOME $myUICulture
[string] $HelpInstallationPathHome = Join-Path $userHelpRoot $myUICulture
@@ -118,7 +118,7 @@ else
}
"Microsoft.PowerShell.Utility" = @{
HelpFiles = "Microsoft.PowerShell.Commands.Utility.dll-Help.xml", "Microsoft.PowerShell.Utility-help.xml"
HelpFiles = "Microsoft.PowerShell.Commands.Utility.dll-Help.xml"
HelpInfoFiles = "Microsoft.PowerShell.Utility_1da87e53-152b-403e-98dc-74d7b4d63d59_HelpInfo.xml"
CompressedFiles = "Microsoft.PowerShell.Utility_1da87e53-152b-403e-98dc-74d7b4d63d59_en-US_helpcontent$extension"
HelpInstallationPath = $HelpInstallationPath
@@ -216,7 +216,7 @@ function RunUpdateHelpTests
# Delete the whole help directory
Remove-Item ($moduleHelpPath) -Recurse
[hashtable] $UICultureParam = $(if ((Get-UICulture).Name -ne $myUICulture) { @{ UICulture = $myUICulture } } else { @{} })
[hashtable] $sourcePathParam = $(if ($useSourcePath) { @{ SourcePath = Join-Path $PSScriptRoot assets } } else { @{} })
Update-Help -Module:$moduleName -Force @UICultureParam @sourcePathParam -Scope:$updateScope