[release/v7.4.15] Fix the `PSNativeCommandArgumentPassing` test by adityapatwardhan · Pull Request #27146 · PowerShell/PowerShell · GitHub
Skip to content

[release/v7.4.15] Fix the PSNativeCommandArgumentPassing test#27146

Merged
adityapatwardhan merged 1 commit intoPowerShell:release/v7.4.15from
adityapatwardhan:backport/release/v7.4.15/27057-78e437c6f
Apr 3, 2026
Merged

[release/v7.4.15] Fix the PSNativeCommandArgumentPassing test#27146
adityapatwardhan merged 1 commit intoPowerShell:release/v7.4.15from
adityapatwardhan:backport/release/v7.4.15/27057-78e437c6f

Conversation

@adityapatwardhan
Copy link
Copy Markdown
Member

Backport of #27057 to release/v7.4.15

Triggered by @adityapatwardhan on behalf of @daxian-dbw

Original CL Label: CL-Test

/cc @PowerShell/powershell-maintainers

Impact

REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.

Tooling Impact

  • Required tooling change
  • Optional tooling change (include reasoning)

Backports a failing test fix needed for stable/LTS release automation reliability.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Cherry-pick applied cleanly with no conflicts onto release/v7.4.15. The change is scoped to test behavior and aligns with the already-merged fix on main.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

The change only adjusts test behavior and does not modify shipping product runtime paths.

Copilot AI review requested due to automatic review settings April 1, 2026 23:42
@adityapatwardhan adityapatwardhan added the CL-Test Indicates that a PR should be marked as a test change in the Change Log label Apr 1, 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

Backports the fix from #27057 to ensure the PSNativeCommandArgumentPassing Pester test reflects the platform default behavior on Windows for the release/v7.4.15 branch, improving release automation reliability.

Changes:

  • Simplifies the Windows-specific assertion to always expect PSNativeCommandArgumentPassing to be Windows.
  • Removes the prior conditional logic that incorrectly asserted Legacy based on a version-parse check.

@adityapatwardhan adityapatwardhan merged commit 744d928 into PowerShell:release/v7.4.15 Apr 3, 2026
49 of 51 checks passed
@adityapatwardhan adityapatwardhan deleted the backport/release/v7.4.15/27057-78e437c6f branch April 3, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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