From 5b20cd9fc19128a83ac04b049b2d9593ce08193a Mon Sep 17 00:00:00 2001 From: gowridurgad <159780674+gowridurgad@users.noreply.github.com> Date: Thu, 27 Jun 2024 11:04:32 +0530 Subject: [PATCH] Update Node.Tests.ps1 --- tests/Node.Tests.ps1 | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/Node.Tests.ps1 b/tests/Node.Tests.ps1 index e18ccb1..e2fd11a 100644 --- a/tests/Node.Tests.ps1 +++ b/tests/Node.Tests.ps1 @@ -34,17 +34,12 @@ Describe "Node.js" { $nodePath.startsWith($expectedPath) | Should -BeTrue -Because "'$nodePath' is not started with '$expectedPath'" } - BeforeAll { - Write-Host "Architecture: $($env:PROCESSOR_ARCHITECTURE)" - Write-Host "OS: $($env:OS)" - } - It "cached version is used without downloading" { # Set a custom variable to check for architecture and OS - $isArm64Windows = if ($IsWindows -and ([System.Environment]::Is64BitOperatingSystem) -and ($ENV:PROCESSOR_ARCHITECTURE -eq 'ARM64')) {$true} else {$false} + $isWindows = if ($IsWindows) {$true} else {$false} $isArm64Linux = if ((uname -m) -eq 'aarch64' -and ((uname -o) -eq 'GNU/Linux')) {$true} else {$false} - if (!$isArm64Windows -and !$isArm64Linux) { + if (!$isWindows -and !$isArm64Linux) { # Analyze output of previous steps to check if Node.js was consumed from cache or downloaded $useNodeLogFile = Get-UseNodeLogs $useNodeLogFile | Should -Exist