Fix Import-Module.Tests.ps1 to handle Arm32 platform (#26862)

This commit is contained in:
Dongbo Wang
2026-02-20 14:05:55 -08:00
committed by GitHub
parent b58ec36093
commit c19a440244
2 changed files with 2 additions and 1 deletions
@@ -41,7 +41,7 @@ Describe "Requires tests" -Tags "CI" {
BeforeAll {
$currentVersion = $PSVersionTable.PSVersion
$powerShellVersions = "1.0", "2.0", "3.0", "4.0", "5.0", "5.1", "6.0", "6.1", "6.2", "7.0", "7.1", "7.2", "7.3", "7.4", "7.5", "7.6"
$powerShellVersions = "1.0", "2.0", "3.0", "4.0", "5.0", "5.1", "6.0", "6.1", "6.2", "7.0", "7.1", "7.2", "7.3", "7.4", "7.5", "7.6", "7.7"
$latestVersion = [version]($powerShellVersions | Sort-Object -Descending -Top 1)
$nonExistingMinor = "$($latestVersion.Major).$($latestVersion.Minor + 1)"
$nonExistingMajor = "$($latestVersion.Major + 1).0"
@@ -62,6 +62,7 @@ Describe "Import-Module" -Tags "CI" {
'X86' { 'x86' }
'X64' { 'amd64' }
'Arm64' { 'arm' }
'Arm' { 'arm' }
default { throw "Unknown processor architecture" }
}
New-ModuleManifest -Path "$TestDrive\TestModule.psd1" -ProcessorArchitecture $currentProcessorArchitecture