Merge pull request #154804 from Mic92/tests-prompt

nixos/tests: add prompt to shell_interact()

Lassulus b80607af 3aff2d66

Changed files
+2 -2
nixos
lib
test-driver
test_driver
+2 -2
nixos/lib/test-driver/test_driver/machine.py
···
Should only be used during test development, not in the production test."""
self.connect()
-
self.log("Terminal is ready (there is no prompt):")
+
self.log("Terminal is ready (there is no initial prompt):")
assert self.shell
subprocess.run(
-
["socat", "READLINE", f"FD:{self.shell.fileno()}"],
+
["socat", "READLINE,prompt=$ ", f"FD:{self.shell.fileno()}"],
pass_fds=[self.shell.fileno()],
)