瀏覽代碼

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

* Automated using https://github.com/myii/ssf-formula/pull/442
tags/v1.11.0
Imran Iqbal 2 年之前
父節點
當前提交
e8a1237632
沒有連結到貢獻者的電子郵件帳戶。
共有 2 個檔案被更改,包括 3 行新增0 行删除
  1. +1
    -0
      test/integration/share/inspec.yml
  2. +2
    -0
      test/integration/share/libraries/system.rb

+ 1
- 0
test/integration/share/inspec.yml 查看文件

@@ -21,4 +21,5 @@ supports:
- platform-name: gentoo
- platform-name: almalinux
- platform-name: rocky
- platform-name: mac_os_x
- platform: windows

+ 2
- 0
test/integration/share/libraries/system.rb 查看文件

@@ -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]

Loading…
取消
儲存