Skip to content

Fix a preview detection test for the packaging script#26882

Merged
daxian-dbw merged 1 commit intoPowerShell:masterfrom
daxian-dbw:mac-package-test
Feb 23, 2026
Merged

Fix a preview detection test for the packaging script#26882
daxian-dbw merged 1 commit intoPowerShell:masterfrom
daxian-dbw:mac-package-test

Conversation

@daxian-dbw
Copy link
Member

PR Summary

Fix a preview detection test for the packaging script.

Copilot AI review requested due to automatic review settings February 23, 2026 20:11
@daxian-dbw daxian-dbw requested a review from a team as a code owner February 23, 2026 20:11
@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 23, 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

This PR improves test coverage for the macOS package identifier detection logic by converting a single test case into a parameterized test that covers both preview and RC versions. The change addresses issue #26673, which was about incorrectly using package name instead of version string for preview detection.

Changes:

  • Converted a single test into a parameterized test with test cases for both "preview" and "rc" versions
  • Removed redundant test code that verified the incorrect logic pattern
  • Maintained the core assertion that version strings correctly identify preview builds

@daxian-dbw daxian-dbw merged commit 7ca2b72 into PowerShell:master Feb 23, 2026
39 of 40 checks passed
@daxian-dbw daxian-dbw added CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log and removed CL-Test Indicates that a PR should be marked as a test change in the Change Log labels Feb 23, 2026
@daxian-dbw daxian-dbw deleted the mac-package-test branch February 23, 2026 20:36
TravisEz13 pushed a commit to TravisEz13/PowerShell that referenced this pull request Feb 25, 2026
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-Consider BackPort-7.6.x-Consider CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants