summaryrefslogtreecommitdiff
path: root/spec/support/platform_helpers.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-04-02 14:35:47 -0700
committerGitHub <noreply@github.com>2021-04-02 14:35:47 -0700
commit8a7b170205c9e3237ee663210b88af23eddb7324 (patch)
treefc96bd6be295ad34f2ffd689f8151491128efd3a /spec/support/platform_helpers.rb
parent6ff48706a96ee10abcf0a5d52bcd4cd2ee10c652 (diff)
parentad03bdc56f4ac297e1e6a0fafa626b967f007fea (diff)
downloadchef-8a7b170205c9e3237ee663210b88af23eddb7324.tar.gz
Merge pull request #11293 from chef/cron_16
Skip the cron integration tests on macOS 11+
Diffstat (limited to 'spec/support/platform_helpers.rb')
-rw-r--r--spec/support/platform_helpers.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb
index b29c860f30..0beea829fd 100644
--- a/spec/support/platform_helpers.rb
+++ b/spec/support/platform_helpers.rb
@@ -122,6 +122,10 @@ def macos?
RUBY_PLATFORM.include?("darwin")
end
+def macos_gte_11?
+ macos? && !!(ohai[:platform_version].to_i >= 11)
+end
+
def solaris?
RUBY_PLATFORM.include?("solaris")
end