@@ -462,9 +462,10 @@ class Machine:
462462 Should only be used during test development, not in the production test."""
463463 self.connect()
464464 self.log("Terminal is ready (there is no prompt):")
465− telnet = telnetlib.Telnet()
466− telnet.sock = self.shell # type: ignore
467− telnet.interact()
465+ subprocess.run(
466+ ["socat", "READLINE", f"FD:{self.shell.fileno()}"],
467+ pass_fds=[self.shell.fileno()],
468+ )
468469
469470 def succeed(self, *commands: str) -> str:
470471 """Execute each command and check that it succeeds."""