Skip to content

Commit

Permalink
Merge pull request #2505 from cthorn42/maint/3.x/another_macos_12_arm…
Browse files Browse the repository at this point in the history
…64_testing_attempt

(maint) Two more macos 12 arm64 testing updates
  • Loading branch information
cthorn42 authored Jul 12, 2022
2 parents 16601d4 + 8cc1bbb commit 91ed8a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions acceptance/lib/facter/acceptance/base_fact_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,13 @@ def osx_expected_facts(agent)
if agent['platform'] =~ /x86_64/
os_arch = 'x86_64'
os_hardware = 'x86_64'
processors_isa = 'i386'
processors_models = /"Intel\(R\).*"/
elsif agent['platform'] =~ /arm64/
os_arch = 'arm64'
os_hardware = 'arm64'
processors_isa = 'arm'
processors_models = /"Apple M1.*"/
end
expected_facts = {
'os.architecture' => os_arch,
Expand All @@ -370,8 +374,8 @@ def osx_expected_facts(agent)
'os.release.minor' => /\d+/,
'processors.count' => /[1-9]/,
'processors.physicalcount' => /[1-9]/,
'processors.isa' => 'i386',
'processors.models' => /"Intel\(R\).*"/,
'processors.isa' => processors_isa,
'processors.models' => processors_models,
'kernel' => 'Darwin',
'kernelrelease' => /\d+\.\d+\.\d+/,
'kernelversion' => /\d+\.\d+\.\d+/,
Expand Down
2 changes: 1 addition & 1 deletion acceptance/tests/facts/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
when /windows/
ruby_platform = agent['ruby_arch'] == 'x64' ? 'x64-mingw32' : 'i386-mingw32'
when /osx/
ruby_platform = /(x86_64|aarch64)-darwin[\d.]+/
ruby_platform = /(x86_64-darwin[\d.]+|aarch64-darwin)/
when /aix/
ruby_platform = /powerpc-aix[\d.]+/
when /solaris/
Expand Down

0 comments on commit 91ed8a2

Please sign in to comment.