summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/spec_helper.rb2
-rw-r--r--spec/support/platform_helpers.rb4
2 files changed, 5 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index ec9293764a..41c9c821bd 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -108,7 +108,7 @@ RSpec.configure do |config|
config.filter_run_excluding :system_windows_service_gem_only => true unless system_windows_service_gem?
config.filter_run_excluding :unix_only => true unless unix?
# Remove this filter once these issues are fixed: OC-9764, OC-9765, OC-9766, OC-9767
- config.filter_run_excluding :unsupported_group_provider_platform => true if (os_x? or solaris? or freebsd? or File.exists?("/etc/SuSE-release"))
+ config.filter_run_excluding :unsupported_group_provider_platform => true if (os_x? or solaris? or freebsd? or suse?)
config.filter_run_excluding :supports_cloexec => true unless supports_cloexec?
config.filter_run_excluding :selinux_only => true unless selinux_enabled?
config.filter_run_excluding :ruby_18_only => true unless ruby_18?
diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb
index b6afb5e4ff..1501a162e0 100644
--- a/spec/support/platform_helpers.rb
+++ b/spec/support/platform_helpers.rb
@@ -91,3 +91,7 @@ def selinux_enabled?
return false
end
end
+
+def suse?
+ File.exists?("/etc/SuSE-release")
+end