diff options
author | Salim Alam <salam@chef.io> | 2015-12-18 12:03:14 -0800 |
---|---|---|
committer | Salim Alam <salam@chef.io> | 2015-12-18 12:07:28 -0800 |
commit | c4e93ec2cd977f2e28b57eca9f17382ad0c4de88 (patch) | |
tree | 3234484c3a64841f83ecac298c622ecd32cdecfc /spec/support/platform_helpers.rb | |
parent | 112759afe6c1edadebe85a1de2367181eeb114c5 (diff) | |
download | chef-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.rb | 4 |
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 |