Skip to content
Snippets Groups Projects
Unverified Commit fc295f86 authored by Imran Iqbal's avatar Imran Iqbal
Browse files

test(system.rb): add support for `mac_os_x` [skip ci]

parent 34994624
No related branches found
No related tags found
No related merge requests found
......@@ -21,4 +21,5 @@ supports:
- platform-name: gentoo
- platform-name: almalinux
- platform-name: rocky
- platform-name: mac_os_x
- platform: windows
......@@ -57,6 +57,8 @@ class SystemResource < Inspec.resource(1)
'base-latest'
when 'gentoo'
"#{inspec.platform[:release].split('.')[0]}-#{derive_gentoo_init_system}"
when 'mac_os_x'
inspec.command('sw_vers -productVersion').stdout.to_s
when 'opensuse'
# rubocop:disable Style/NumericLiterals,Layout/LineLength
inspec.platform[:release].to_i > 20210101 ? 'tumbleweed' : inspec.platform[:release]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment