You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/units/module_utils/facts
Yaakov Selkowitz 5d3f0fe02c facts: fix double-counting of CPUs on POWER systems (#58360)
On POWER systems, /proc/cpuinfo provides a 'processor' entry as a
counter, and a 'cpu' entry with a description (similar to 'model name'
on x86). Support for POWER in get_cpu_facts was added via the 'cpu'
entry in commit 8746e692c1.  Subsequent
support for ARM64 in commit ce4ada93f9
used the 'processor' entry, resulting in double-counting of cores on
POWER systems.

When unit tests were later written for this code in
commit 55306906cf, the erroneous values
were just accepted in the test instead of being diagnosed.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
(cherry picked from commit 93d9d64038)
6 years ago
..
fixtures Correctly count processors on ARM systems. (#52884) 7 years ago
hardware facts: fix double-counting of CPUs on POWER systems (#58360) 6 years ago
network Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago
other Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago
system Ensure Clear Linux parsing is actually parsing a Clear Linux host and all others fall back to NA (#53298) 7 years ago
__init__.py Facts Timeout was not settable via ansible.cfg 9 years ago
base.py Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago
test_ansible_collector.py Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago
test_collector.py Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago
test_collectors.py Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago
test_facts.py Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago
test_timeout.py Make the timeout decorator raise an exception out of the function's scope (#49921) 7 years ago
test_utils.py Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago