mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-21 15:53:32 +01:00
tests: prefer sending new line over return
This commit is contained in:
parent
db75a7e29a
commit
94d26cfae6
@ -24,9 +24,7 @@ self.inputs.nixpkgs.lib.nixos.runTest {
|
||||
''
|
||||
machine.wait_for_unit("default.target")
|
||||
|
||||
machine.send_chars("nvim hello.txt")
|
||||
machine.sleep(1)
|
||||
machine.send_key("ret")
|
||||
machine.send_chars("nvim hello.txt\n")
|
||||
machine.sleep(20)
|
||||
|
||||
machine.send_chars("i")
|
||||
@ -35,9 +33,7 @@ self.inputs.nixpkgs.lib.nixos.runTest {
|
||||
machine.sleep(2)
|
||||
machine.send_key("esc")
|
||||
machine.sleep(2)
|
||||
machine.send_chars(":wq")
|
||||
machine.sleep(2)
|
||||
machine.send_key("ret")
|
||||
machine.send_chars(":wq\n")
|
||||
machine.sleep(2)
|
||||
|
||||
text = machine.succeed("cat /home/user/hello.txt")
|
||||
|
Loading…
Reference in New Issue
Block a user