ansible/test/units/plugins
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
..
action Migrated to ansible.windows 2020-03-23 11:14:21 -05:00
become Migrated to community.general 2020-03-23 11:14:21 -05:00
cache Migrated to community.general 2020-03-23 11:14:21 -05:00
callback Replace TestCase.assertEquals with TestCase.assertEqual. 2019-11-11 10:24:21 -08:00
connection Fix filedescriptor out of range in select() when running commands (#65058) 2020-05-14 11:46:34 -04:00
filter Migrated to ansible.netcommon 2020-03-23 11:14:21 -05:00
inventory Migrated to openstack.cloud 2020-03-23 11:14:21 -05:00
loader_fixtures Don't cache duplicate plugin names (#34420) 2018-01-04 16:47:23 -06:00
lookup Migrated to ansible.amazon 2020-03-23 11:14:21 -05:00
shell windows - fix up env var quoting for unicode single quotes (#68968) 2020-04-16 20:24:23 +10:00
strategy Clean up unit tests to assist with migration. (#67875) 2020-02-28 20:29:41 -08:00
__init__.py
test_plugins.py Remove empty setUp/tearDown/tearDownClass methods in test classes. 2019-11-06 08:14:29 -08:00