From 72d52b7d0869e23ccd02ddd54e3abe730bd0e5ca Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Mon, 13 Jan 2020 19:26:54 +0000 Subject: [PATCH] Correct case of $IsMacOS special variable --- .../Modules/Microsoft.PowerShell.Utility/New-Object.Tests.ps1 | 2 +- test/powershell/engine/Basic/Assembly.LoadNative.Tests.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Object.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Object.Tests.ps1 index 48e7d40c54..625ff491fb 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Object.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Object.Tests.ps1 @@ -2,7 +2,7 @@ # Licensed under the MIT License. Describe "New-Object" -Tags "CI" { It "Support 'ComObject' parameter on platforms" { - if ($IsLinux -or $IsMacOs ) { + if ($IsLinux -or $IsMacOS ) { { New-Object -ComObject "Shell.Application" } | Should -Throw -ErrorId "NamedParameterNotFound,Microsoft.PowerShell.Commands.NewObjectCommand" } else { # It works on NanoServer and IoT too diff --git a/test/powershell/engine/Basic/Assembly.LoadNative.Tests.ps1 b/test/powershell/engine/Basic/Assembly.LoadNative.Tests.ps1 index 854889c2d9..689de7d73e 100644 --- a/test/powershell/engine/Basic/Assembly.LoadNative.Tests.ps1 +++ b/test/powershell/engine/Basic/Assembly.LoadNative.Tests.ps1 @@ -23,7 +23,7 @@ Describe "Can load a native assembly" -Tags "CI" { $arch = "linux-" + $processArch $nativeDllName = "nativedll.so" $sourceDllName = "libhostpolicy.so" - } elseif ($IsMacOs) { + } elseif ($IsMacOS) { $arch = "osx-" + $processArch $nativeDllName = "nativedll.dylib" $sourceDllName = "libhostpolicy.dylib"