nixos/tests/test-driver: document shell_interact
This commit is contained in:
parent
5a589b5ba8
commit
9469433e34
@ -436,6 +436,17 @@ machine.systemctl("list-jobs --no-pager", "any-user") # spawns a shell for `any-
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>
|
||||||
|
<methodname>shell_interact</methodname>
|
||||||
|
</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Allows you to directly interact with the guest shell.
|
||||||
|
This should only be used during test development, not in production tests.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
@ -459,7 +459,7 @@ class Machine:
|
|||||||
def shell_interact(self) -> None:
|
def shell_interact(self) -> None:
|
||||||
"""Allows you to interact with the guest shell
|
"""Allows you to interact with the guest shell
|
||||||
|
|
||||||
Should only be used during testing, not in the production test."""
|
Should only be used during test development, not in the production test."""
|
||||||
self.connect()
|
self.connect()
|
||||||
telnet = telnetlib.Telnet()
|
telnet = telnetlib.Telnet()
|
||||||
telnet.sock = self.shell # type: ignore
|
telnet.sock = self.shell # type: ignore
|
||||||
|
Loading…
Reference in New Issue
Block a user