summaryrefslogtreecommitdiff
path: root/spec/support/platform_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/platform_helpers.rb')
-rw-r--r--spec/support/platform_helpers.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb
index 9f3ef74a11..e761b625d8 100644
--- a/spec/support/platform_helpers.rb
+++ b/spec/support/platform_helpers.rb
@@ -174,6 +174,10 @@ def rhel6?
rhel? && !!(ohai[:platform_version].to_i == 6)
end
+def opensuse15?
+ suse? && !!(ohai[:platform_version].to_i == 15)
+end
+
def rhel7?
rhel? && !!(ohai[:platform_version].to_i == 7)
end
@@ -227,8 +231,7 @@ def selinux_enabled?
end
def suse?
- ::File.exists?("/etc/SuSE-release") ||
- ( ::File.exists?("/etc/os-release") && /sles|suse/.match?(File.read("/etc/os-release")) )
+ ::File.exists?("/etc/os-release") && /sles|suse/.match?(File.read("/etc/os-release"))
end
def root?