Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update the Update-Help tests to use -Force to remove read-only files#26780

Merged
TravisEz13 merged 2 commits intoPowerShell:masterPowerShell/PowerShell:masterfrom
daxian-dbw:update-helpdaxian-dbw/PowerShell:update-helpCopy head branch name to clipboard
Feb 12, 2026
Merged

Update the Update-Help tests to use -Force to remove read-only files#26780
TravisEz13 merged 2 commits intoPowerShell:masterPowerShell/PowerShell:masterfrom
daxian-dbw:update-helpdaxian-dbw/PowerShell:update-helpCopy head branch name to clipboard

Conversation

@daxian-dbw
Copy link
Member

PR Summary

Update the Update-Help tests to use -Force to 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.

image

PR Checklist

@daxian-dbw daxian-dbw requested a review from a team as a code owner February 10, 2026 21:16
Copilot AI review requested due to automatic review settings February 10, 2026 21:16
@daxian-dbw daxian-dbw added the CL-Test Indicates that a PR should be marked as a test change in the Change Log label Feb 10, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 -Force to the Remove-Item call that clears the module help folder prior to Update-Help.

test/powershell/engine/Help/UpdatableHelpSystem.Tests.ps1 Outdated Show resolved Hide resolved
@iSazonov
Copy link
Collaborator

There are a lot of trash. Ex. $actual.SubjectAlternativeName | Should -BeOfType [string]

@TravisEz13 TravisEz13 merged commit 2e26e4b into PowerShell:master Feb 12, 2026
36 checks passed
TravisEz13 pushed a commit to TravisEz13/PowerShell that referenced this pull request Feb 12, 2026
TravisEz13 pushed a commit to TravisEz13/PowerShell that referenced this pull request Feb 12, 2026
TravisEz13 pushed a commit to TravisEz13/PowerShell that referenced this pull request Feb 12, 2026
@daxian-dbw daxian-dbw deleted the update-help branch February 12, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport-7.4.x-Migrated Backport-7.5.x-Migrated Backport-7.6.x-Migrated CL-Test Indicates that a PR should be marked as a test change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments

Close sidebar
Morty Proxy This is a proxified and sanitized view of the page, visit original site.