summaryrefslogtreecommitdiff
path: root/spec/support/platform_helpers.rb
diff options
context:
space:
mode:
authorSalim Alam <salam@chef.io>2015-12-18 12:03:14 -0800
committerSalim Alam <salam@chef.io>2015-12-18 12:07:28 -0800
commitc4e93ec2cd977f2e28b57eca9f17382ad0c4de88 (patch)
tree3234484c3a64841f83ecac298c622ecd32cdecfc /spec/support/platform_helpers.rb
parent112759afe6c1edadebe85a1de2367181eeb114c5 (diff)
downloadchef-12.6-release.tar.gz
Merge pull request #4330 from chef/shain/disable_aix_mount_tests12.6.012.6-release
Disabled mount tests on AIX
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 2fc4a02cf1..492e1eae88 100644
--- a/spec/support/platform_helpers.rb
+++ b/spec/support/platform_helpers.rb
@@ -151,6 +151,10 @@ def aix?
!!(RUBY_PLATFORM =~ /aix/)
end
+def wpar?
+ !((ohai[:virtualization] || {})[:wpar_no].nil?)
+end
+
def supports_cloexec?
Fcntl.const_defined?('F_SETFD') && Fcntl.const_defined?('FD_CLOEXEC')
end