Skip to content

Commit 47f4d4b

Browse files
committed
test(system.rb): add support for mac_os_x [skip ci]
* Automated using myii/ssf-formula#442
1 parent 2bf7459 commit 47f4d4b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

test/integration/share/inspec.yml

+1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ supports:
2121
- platform-name: gentoo
2222
- platform-name: almalinux
2323
- platform-name: rocky
24+
- platform-name: mac_os_x
2425
- platform: windows

test/integration/share/libraries/system.rb

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ def build_platform_release
5757
'base-latest'
5858
when 'gentoo'
5959
"#{inspec.platform[:release].split('.')[0]}-#{derive_gentoo_init_system}"
60+
when 'mac_os_x'
61+
inspec.command('sw_vers -productVersion').stdout.to_s
6062
when 'opensuse'
6163
# rubocop:disable Style/NumericLiterals,Layout/LineLength
6264
inspec.platform[:release].to_i > 20210101 ? 'tumbleweed' : inspec.platform[:release]

0 commit comments

Comments
 (0)