Update the Update-Help tests to use -Force to remove read-only files#26780
Merged
TravisEz13 merged 2 commits intoPowerShell:masterPowerShell/PowerShell:masterfrom Feb 12, 2026
Merged
Update the Update-Help tests to use -Force to remove read-only files#26780TravisEz13 merged 2 commits intoPowerShell:masterPowerShell/PowerShell:masterfrom
Update-Help tests to use -Force to remove read-only files#26780TravisEz13 merged 2 commits intoPowerShell:masterPowerShell/PowerShell:masterfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the UpdatableHelpSystem Pester tests to remove updatable help content more reliably by forcing deletion of read-only files before running Update-Help.
Changes:
- Add
-Forceto theRemove-Itemcall that clears the module help folder prior toUpdate-Help.
iSazonov
approved these changes
Feb 11, 2026
Collaborator
|
There are a lot of trash. Ex. $actual.SubjectAlternativeName | Should -BeOfType [string] |
TravisEz13
approved these changes
Feb 12, 2026
TravisEz13
pushed a commit
to TravisEz13/PowerShell
that referenced
this pull request
Feb 12, 2026
9 tasks
TravisEz13
pushed a commit
to TravisEz13/PowerShell
that referenced
this pull request
Feb 12, 2026
9 tasks
TravisEz13
pushed a commit
to TravisEz13/PowerShell
that referenced
this pull request
Feb 12, 2026
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Summary
Update the
Update-Helptests to use-Forceto remove read-only files.It cannot remove the read-only files in the help content folder, which results in tons of non-terminating errors like the following.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright header