Arguments are used for pexpect calls.
(self, logfile=None, read_timeout=None, terminate_timeout=None)
| 68 | return self._sh |
| 69 | |
| 70 | def __init__(self, logfile=None, read_timeout=None, terminate_timeout=None): |
| 71 | """Arguments are used for pexpect calls.""" |
| 72 | self.read_timeout = (ProcessHandler.read_timeout if read_timeout is |
| 73 | None else read_timeout) |
| 74 | self.terminate_timeout = (ProcessHandler.terminate_timeout if |
| 75 | terminate_timeout is None else |
| 76 | terminate_timeout) |
| 77 | self.logfile = sys.stdout if logfile is None else logfile |
| 78 | |
| 79 | def getoutput(self, cmd): |
| 80 | """Run a command and return its stdout/stderr as a string. |
nothing calls this directly
no outgoing calls
no test coverage detected