diff options
author | Brian Coca <bcoca@users.noreply.github.com> | 2019-01-23 18:33:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-23 18:33:59 +0100 |
commit | 42c35a2e0115b5a5656d4646dca775f95c5048fa (patch) | |
tree | cfd444a089dbfa5096fb312221a90ed954cde8d0 /test/units/module_utils | |
parent | faster config loading (#48333) (diff) | |
download | ansible-42c35a2e0115b5a5656d4646dca775f95c5048fa.tar.xz ansible-42c35a2e0115b5a5656d4646dca775f95c5048fa.zip |
parallelize getting mount info (#49398)
* parallelize getting mount info
* fixed timeout and made 8 max thread count
- minor cleanup
- avoid empty mount entries
- set timeout on get
- enforce timeout per mount/thread
- make note on failure per mount
- make note on timeout per mount
- ensure proper pool control
- minor fixes
- less vars, simpler code
- move filter 'pre threading'
- remove timeout for all mounts, now per mount
- also use cpu count from multiprocessing lib
- moved 'bind' options out of thread as per comments
- warn on error, more info on failure to get info
Diffstat (limited to 'test/units/module_utils')
-rw-r--r-- | test/units/module_utils/facts/hardware/test_linux.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/units/module_utils/facts/hardware/test_linux.py b/test/units/module_utils/facts/hardware/test_linux.py index 20e65b5fcc..6e77683a3d 100644 --- a/test/units/module_utils/facts/hardware/test_linux.py +++ b/test/units/module_utils/facts/hardware/test_linux.py @@ -84,6 +84,7 @@ class TestFactsLinuxHardwareGetMountFacts(unittest.TestCase): 'uuid': 'N/A'} home_info = [x for x in mount_facts['mounts'] if x['mount'] == '/home'][0] + self.maxDiff = 4096 self.assertDictEqual(home_info, home_expected) @patch('ansible.module_utils.facts.hardware.linux.get_file_content', return_value=MTAB) |