mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Update the Update-Help tests to use -Force to remove read-only files (#26780)
This commit is contained in:
1 parent
439c42f232
commit
2e26e4b690
1 file changed
+1
-1
@@ -215,7 +215,7 @@ function RunUpdateHelpTests
|
||||
It ('Validate Update-Help for module ''{0}'' in {1}' -F $moduleName, [PSCustomObject] $updateScope) -Skip:(!(Test-CanWriteToPsHome) -and $userscope -eq $false) {
|
||||
|
||||
# Delete the whole help directory
|
||||
Remove-Item ($moduleHelpPath) -Recurse
|
||||
Remove-Item ($moduleHelpPath) -Recurse -Force -ErrorAction SilentlyContinue
|
||||
|
||||
[hashtable] $UICultureParam = $(if ((Get-UICulture).Name -ne $myUICulture) { @{ UICulture = $myUICulture } } else { @{} })
|
||||
[hashtable] $sourcePathParam = $(if ($useSourcePath) { @{ SourcePath = Join-Path $PSScriptRoot assets } } else { @{} })
|
||||
|
||||
Reference in new issue
Block a user