host.localHost¶
-
class otto.host.localHost.LocalHost(log=
True)¶ Bases:
BaseHost- name : --is-rst--:py:class:`str`¶
- log : --is-rst--:py:class:`bool`¶
Determines whether this host should log its output to stdout and log files.
-
async oneshot(cmd, timeout=
None)¶ Run a command in a fresh subprocess (stateless, concurrent-safe).
Each call spawns an independent process — no state persists between calls, and multiple oneshot() calls can run concurrently via asyncio.gather().
- Return type:¶
-
async expect(pattern, timeout=
10.0)¶ Wait for a pattern in the host’s session output stream.
- Return type:¶
str