summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorScott Hain <shain@chef.io>2015-12-18 11:22:45 -0800
committerScott Hain <shain@chef.io>2015-12-18 11:22:45 -0800
commit158733be398c91d4003258c9a0b4ea890c467971 (patch)
tree31048bff4be196cef7e72d0f5e8212b9d738f767 /spec/support
parentf7320388ddba27693304d268fa8cc30c7d4a2cb2 (diff)
downloadchef-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.rb4
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