mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 03:29:45 +01:00
tests: fix escaping of wait command
This commit is contained in:
parent
40ddec2f8a
commit
25c12f0736
3 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@
|
||||||
machine.send_chars("alice\n")
|
machine.send_chars("alice\n")
|
||||||
machine.wait_until_tty_matches("1", "Password: ")
|
machine.wait_until_tty_matches("1", "Password: ")
|
||||||
machine.send_chars("foobar\n")
|
machine.send_chars("foobar\n")
|
||||||
machine.wait_until_tty_matches("1", "alice\@machine")
|
machine.wait_until_tty_matches("1", "alice\\@machine")
|
||||||
|
|
||||||
def logout_alice():
|
def logout_alice():
|
||||||
machine.send_chars("exit\n")
|
machine.send_chars("exit\n")
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
machine.send_chars("alice\n")
|
machine.send_chars("alice\n")
|
||||||
machine.wait_until_tty_matches("1", "Password: ")
|
machine.wait_until_tty_matches("1", "Password: ")
|
||||||
machine.send_chars("foobar\n")
|
machine.send_chars("foobar\n")
|
||||||
machine.wait_until_tty_matches("1", "alice\@machine")
|
machine.wait_until_tty_matches("1", "alice\\@machine")
|
||||||
|
|
||||||
def logout_alice():
|
def logout_alice():
|
||||||
machine.send_chars("exit\n")
|
machine.send_chars("exit\n")
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
machine.send_chars("alice\n")
|
machine.send_chars("alice\n")
|
||||||
machine.wait_until_tty_matches("1", "Password: ")
|
machine.wait_until_tty_matches("1", "Password: ")
|
||||||
machine.send_chars("foobar\n")
|
machine.send_chars("foobar\n")
|
||||||
machine.wait_until_tty_matches("1", "alice\@machine")
|
machine.wait_until_tty_matches("1", "alice\\@machine")
|
||||||
|
|
||||||
def logout_alice():
|
def logout_alice():
|
||||||
machine.send_chars("exit\n")
|
machine.send_chars("exit\n")
|
||||||
|
|
Loading…
Reference in a new issue