Pexpect.expect_all#
- Pexpect.expect_all(ctl_id, patterns, reject=None, timeout=None, **kw)[source]#
Wait for all the given patterns in one process’ output, in any order.
- Parameters:
ctl_id (
int) – spawned-process identifier.patterns (
sequence) – regular expressions to wait for.reject (
sequence) – regular expressions aborting every round; seeexpect.timeout (
float) – overall time budget in seconds for all the patterns, or None to use default.**kw – keyword arguments passed to each
pexpect.expect.
- Returns:
groups of each pattern’s match, in the order of
patterns.- Return type:
list