diff options
author | Scott Hain <shain@chef.io> | 2015-12-18 11:22:45 -0800 |
---|---|---|
committer | Scott Hain <shain@chef.io> | 2015-12-18 11:22:45 -0800 |
commit | 158733be398c91d4003258c9a0b4ea890c467971 (patch) | |
tree | 31048bff4be196cef7e72d0f5e8212b9d738f767 /spec/support | |
parent | f7320388ddba27693304d268fa8cc30c7d4a2cb2 (diff) | |
download | chef-158733be398c91d4003258c9a0b4ea890c467971.tar.gz |
Filter out service test that cannot run inside a WPARshain/disable_aix_mount_tests
Diffstat (limited to 'spec/support')
-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 3698091e1b..e80df90499 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 |