Switch use of select() to poll()
This commit switches the use of select() in ssh.py to use poll()
instead. Using select() does not work with large FD numbers, but
by switching to poll() such constraints don't exist.
Change-Id: I8c4dd22b86e5a570691e35e2390c3679371ae1eb
diff --git a/tempest/common/ssh.py b/tempest/common/ssh.py
index 04cc851..be350c8 100644
--- a/tempest/common/ssh.py
+++ b/tempest/common/ssh.py
@@ -112,10 +112,10 @@
channel.shutdown_write()
out_data = []
err_data = []
-
- select_params = [channel], [], [], self.channel_timeout
+ poll = select.poll()
+ poll.register(channel, select.POLLIN)
while True:
- ready = select.select(*select_params)
+ ready = poll.poll(self.channel_timeout)
if not any(ready):
raise exceptions.TimeoutException(
"Command: '{0}' executed on host '{1}'.".format(