Skip to content

Commit 7979a4b

Browse files
authored
[release/v7.5] Update the Update-Help tests to use -Force to remove read-only files (#26788)
1 parent c1545b0 commit 7979a4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/powershell/engine/Help/UpdatableHelpSystem.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function RunUpdateHelpTests
215215
It ('Validate Update-Help for module ''{0}'' in {1}' -F $moduleName, [PSCustomObject] $updateScope) -Skip:(!(Test-CanWriteToPsHome) -and $userscope -eq $false) {
216216

217217
# Delete the whole help directory
218-
Remove-Item ($moduleHelpPath) -Recurse
218+
Remove-Item ($moduleHelpPath) -Recurse -Force -ErrorAction SilentlyContinue
219219

220220
[hashtable] $UICultureParam = $(if ((Get-UICulture).Name -ne $myUICulture) { @{ UICulture = $myUICulture } } else { @{} })
221221
[hashtable] $sourcePathParam = $(if ($useSourcePath) { @{ SourcePath = Join-Path $PSScriptRoot assets } } else { @{} })

0 commit comments

Comments
 (0)