Skip to content

Commit c19a440

Browse files
authored
Fix Import-Module.Tests.ps1 to handle Arm32 platform (PowerShell#26862)
1 parent b58ec36 commit c19a440

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

test/powershell/Language/Scripting/Requires.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Describe "Requires tests" -Tags "CI" {
4141
BeforeAll {
4242
$currentVersion = $PSVersionTable.PSVersion
4343

44-
$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"
44+
$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"
4545
$latestVersion = [version]($powerShellVersions | Sort-Object -Descending -Top 1)
4646
$nonExistingMinor = "$($latestVersion.Major).$($latestVersion.Minor + 1)"
4747
$nonExistingMajor = "$($latestVersion.Major + 1).0"

test/powershell/Modules/Microsoft.PowerShell.Core/Import-Module.Tests.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Describe "Import-Module" -Tags "CI" {
6262
'X86' { 'x86' }
6363
'X64' { 'amd64' }
6464
'Arm64' { 'arm' }
65+
'Arm' { 'arm' }
6566
default { throw "Unknown processor architecture" }
6667
}
6768
New-ModuleManifest -Path "$TestDrive\TestModule.psd1" -ProcessorArchitecture $currentProcessorArchitecture

0 commit comments

Comments
 (0)