Browse Source

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

* Automated using https://github.com/myii/ssf-formula/pull/442
tags/v0.48.8
Imran Iqbal 2 years ago
parent
commit
321fdcfd97
No account linked to committer's email address
2 changed files with 3 additions and 0 deletions
  1. +1
    -0
      test/integration/share/inspec.yml
  2. +2
    -0
      test/integration/share/libraries/system.rb

+ 1
- 0
test/integration/share/inspec.yml View File

- platform-name: gentoo - platform-name: gentoo
- platform-name: almalinux - platform-name: almalinux
- platform-name: rocky - platform-name: rocky
- platform-name: mac_os_x
- platform: windows - platform: windows

+ 2
- 0
test/integration/share/libraries/system.rb View File

'base-latest' 'base-latest'
when 'gentoo' when 'gentoo'
"#{inspec.platform[:release].split('.')[0]}-#{derive_gentoo_init_system}" "#{inspec.platform[:release].split('.')[0]}-#{derive_gentoo_init_system}"
when 'mac_os_x'
inspec.command('sw_vers -productVersion').stdout.to_s
when 'opensuse' when 'opensuse'
# rubocop:disable Style/NumericLiterals,Layout/LineLength # rubocop:disable Style/NumericLiterals,Layout/LineLength
inspec.platform[:release].to_i > 20210101 ? 'tumbleweed' : inspec.platform[:release] inspec.platform[:release].to_i > 20210101 ? 'tumbleweed' : inspec.platform[:release]

Loading…
Cancel
Save