From e2d6b1632be3cc77ce56a845b3512bc5847f2003 Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Date: Wed, 27 Jan 2021 17:26:40 +0300 Subject: [PATCH] exclude macOS less than Catalina (#2570) --- images/macos/tests/WebServers.Tests.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/images/macos/tests/WebServers.Tests.ps1 b/images/macos/tests/WebServers.Tests.ps1 index 5bd1f116d..67e4ca301 100644 --- a/images/macos/tests/WebServers.Tests.ps1 +++ b/images/macos/tests/WebServers.Tests.ps1 @@ -1,4 +1,6 @@ -Describe "Apache" { +$os = Get-OSVersion + +Describe "Apache" -Skip:($os.IsLessThanCatalina) { It "Apache CLI" { "httpd -v" | Should -ReturnZeroExitCode } @@ -8,7 +10,7 @@ Describe "Apache" { } } -Describe "Nginx" { +Describe "Nginx" -Skip:($os.IsLessThanCatalina) { It "Nginx CLI" { "nginx -v" | Should -ReturnZeroExitCode }