Skip to content

[release/v7.6] Fix Import-Module.Tests.ps1 to handle Arm32 platform#26888

Merged
daxian-dbw merged 2 commits intoPowerShell:release/v7.6from
daxian-dbw:backport/release/v7.6/26862-c19a44024
Feb 24, 2026
Merged

[release/v7.6] Fix Import-Module.Tests.ps1 to handle Arm32 platform#26888
daxian-dbw merged 2 commits intoPowerShell:release/v7.6from
daxian-dbw:backport/release/v7.6/26862-c19a44024

Conversation

@daxian-dbw
Copy link
Copy Markdown
Member

Backport of #26862 to release/v7.6

Triggered by @daxian-dbw 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)

Customer Impact

  • Customer reported
  • Found internally

This test fix ensures Import-Module tests handle Arm32 platform correctly, preventing test failures in release automation.

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Verified the backport cherry-picked cleanly with no conflicts. The changes add Arm32 processor architecture handling and update the PowerShell version list for test scenarios.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

This is a test-only change that adds Arm32 platform support to Import-Module.Tests.ps1 and updates the version list in Requires.Tests.ps1. No production code is affected.

Copilot AI review requested due to automatic review settings February 24, 2026 19:28
@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 24, 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 pull request is a backport of #26862 to the release/v7.6 branch, which aims to fix test failures related to Arm32 platform handling. The PR makes two changes: adds Arm32 processor architecture support to Import-Module tests and updates the PowerShell version list used in Requires tests.

Changes:

  • Add 'Arm' case to processor architecture switch in Import-Module.Tests.ps1 to handle Arm32 platforms
  • Add "7.7" to the PowerShell versions list in Requires.Tests.ps1

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
test/powershell/Modules/Microsoft.PowerShell.Core/Import-Module.Tests.ps1 Adds 'Arm' (Arm32) processor architecture case that maps to 'arm' manifest value, consistent with Arm64 handling
test/powershell/Language/Scripting/Requires.Tests.ps1 Adds "7.7" to the list of valid PowerShell versions used for testing #requires statements

@daxian-dbw daxian-dbw merged commit 45e05e9 into PowerShell:release/v7.6 Feb 24, 2026
42 of 44 checks passed
@daxian-dbw daxian-dbw deleted the backport/release/v7.6/26862-c19a44024 branch February 24, 2026 21:00
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