Skip to content

Commit

Permalink
(PA-6392) Let 'unknown' be an acceptable processor.isa fact value for…
Browse files Browse the repository at this point in the history
… Fedora

 - In os_processors_and_kernel test case, for fedora (intel) we expect processor.isa fact to be x86_64.
 - This value is derived from 'uname -p' command on the system.
 - But Fedora 40 returns 'unknown' for 'uname -p', so we make the test case accept 'unknown' as well.
  • Loading branch information
shubhamshinde360 committed May 6, 2024
1 parent d04a42d commit bdd8dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acceptance/lib/facter/acceptance/base_fact_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def fedora_expected_facts(agent)
'os.release.major' => os_version,
'processors.count' => /[1-9]/,
'processors.physicalcount' => /[1-9]/,
'processors.isa' => os_hardware,
'processors.isa' => /unknown|#{os_hardware}/,
'processors.models' => /(Intel\(R\).*)|(AMD.*)/,
'kernel' => 'Linux',
'kernelrelease' => /\d+\.\d+\.\d+/,
Expand Down

0 comments on commit bdd8dd8

Please sign in to comment.