Skip to content

Fix the PSNativeCommandArgumentPassing test#27057

Merged
daxian-dbw merged 1 commit intoPowerShell:masterfrom
daxian-dbw:test-fix
Mar 18, 2026
Merged

Fix the PSNativeCommandArgumentPassing test#27057
daxian-dbw merged 1 commit intoPowerShell:masterfrom
daxian-dbw:test-fix

Conversation

@daxian-dbw
Copy link
Copy Markdown
Member

@daxian-dbw daxian-dbw commented Mar 18, 2026

PR Summary

Fix the PSNativeCommandArgumentPassing test. This test is failing in release automation for Stable and LTS releases.

@daxian-dbw daxian-dbw requested a review from a team as a code owner March 18, 2026 20:32
Copilot AI review requested due to automatic review settings March 18, 2026 20:32
@daxian-dbw daxian-dbw added CL-Test Indicates that a PR should be marked as a test change in the Change Log Backport-7.4.x-Consider Backport-7.5.x-Consider Backport-7.6.x-Consider labels Mar 18, 2026
Copy link
Copy Markdown
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

This PR fixes a failing/incorrect Pester assertion around the default value of the $PSNativeCommandArgumentPassing preference variable on Windows, aligning the test expectation with the engine default.

Changes:

  • Simplifies the Windows-only test to always expect $PSNativeCommandArgumentPassing to be "Windows" (removing the prior incorrect conditional).

@daxian-dbw daxian-dbw merged commit 78e437c into PowerShell:master Mar 18, 2026
43 of 44 checks passed
@daxian-dbw daxian-dbw deleted the test-fix branch March 18, 2026 22:32
adityapatwardhan pushed a commit to adityapatwardhan/PowerShell that referenced this pull request Apr 1, 2026
adityapatwardhan pushed a commit to adityapatwardhan/PowerShell that referenced this pull request Apr 2, 2026
adityapatwardhan pushed a commit to adityapatwardhan/PowerShell that referenced this pull request Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport-7.4.x-Done Backport-7.5.x-Done Backport-7.6.x-Done 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