Skip to content

Commit

Permalink
test(system.rb): add support for mac_os_x [skip ci]
Browse files Browse the repository at this point in the history
* Automated using myii/ssf-formula#442
  • Loading branch information
myii committed May 17, 2022
1 parent 9df337a commit 00bf3aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/integration/share/inspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ supports:
- platform-name: gentoo
- platform-name: almalinux
- platform-name: rocky
- platform-name: mac_os_x
- platform: windows
2 changes: 2 additions & 0 deletions test/integration/share/libraries/system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def build_platform_release
'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]
Expand Down

0 comments on commit 00bf3aa

Please sign in to comment.