ansible/test/units/module_utils/basic
Bob Weinand f200487414
Fix filedescriptor out of range in select() when running commands (#65058)
* Fix filedescriptor out of range in select() when running commands

* Simplify the run_command() code

Now that we're using selectors in run_command(), we can simplify some of
the code.

* Use fileobj.read() instead of os.read()
* No longer use get_buffer_size() as we can just slurp all of the data
  instead.

Also use a simpler conditional check of whether the selector map is
empty

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
2020-05-14 11:46:34 -04:00
..
__init__.py
test__log_invocation.py
test__symbolic_mode_to_octal.py
test_argument_spec.py Add mechanism for storing warnings and deprecations outside of AnsibleModule (#58993) 2020-01-28 12:12:14 -05:00
test_atomic_move.py Revert "stricter permissions on atomic_move when creating new file (#68970)" (#68983) 2020-04-16 12:52:15 -04:00
test_deprecate_warn.py
test_dict_converters.py
test_exit_json.py Add some more unittests for fail_json 2020-04-08 07:56:11 -07:00
test_filesystem.py
test_get_file_attributes.py
test_get_module_path.py
test_heuristic_log_sanitize.py
test_imports.py
test_log.py
test_no_log.py
test_platform_distribution.py
test_run_command.py Fix filedescriptor out of range in select() when running commands (#65058) 2020-05-14 11:46:34 -04:00
test_safe_eval.py
test_selinux.py
test_set_mode_if_different.py
test_tmpdir.py