Update Node.Tests.ps1

This commit is contained in:
gowridurgad 2024-06-27 10:36:24 +05:30 committed by GitHub
parent dd8ef7901f
commit afb778a6b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,7 +41,7 @@ Describe "Node.js" {
It "cached version is used without downloading" {
# Set a custom variable to check for architecture and OS
$isArm64Windows = if ($IsWindows -and ([System.Environment]::Is64BitOperatingSystem)) {$true} else {$false}
$isArm64Windows = if ($IsWindows -and ([System.Environment]::Is64BitOperatingSystem) -and ($ENV:PROCESSOR_ARCHITECTURE -eq 'ARM64')) {$true} else {$false}
$isArm64Linux = if ((uname -m) -eq 'aarch64' -and ((uname -o) -eq 'GNU/Linux')) {$true} else {$false}
if (!$isArm64Windows -and !$isArm64Linux) {