mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix Import-Module.Tests.ps1 to handle Arm32 platform (#26862)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user