[release/v7.6] Fix Import-Module.Tests.ps1 to handle Arm32 platform#26888
Merged
daxian-dbw merged 2 commits intoPowerShell:release/v7.6from Feb 24, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
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 |
SeeminglyScience
approved these changes
Feb 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Customer Impact
This test fix ensures Import-Module tests handle Arm32 platform correctly, preventing test failures in release automation.
Regression
REQUIRED: Check exactly one box.
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.
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.