mirror of
https://github.com/ryantm/agenix.git
synced 2024-12-22 07:38:31 +03:00
test: fix type error
Fix this mypy typcheck error in the test builder: testScriptWithTypes:52: error: Argument 1 to "wait_until_tty_matches" of "Machine" has incompatible type "int"; expected "str" system1.wait_until_tty_matches(2, "login: ") This makes the test succeed again.
This commit is contained in:
parent
a630400067
commit
822f71b8d8
1 changed files with 2 additions and 2 deletions
|
@ -45,9 +45,9 @@ import "${nixpkgs}/nixos/tests/make-test-python.nix" ({ pkgs, ...}: {
|
|||
system1.wait_until_succeeds("[ $(fgconsole) = 2 ]")
|
||||
system1.wait_for_unit("getty@tty2.service")
|
||||
system1.wait_until_succeeds("pgrep -f 'agetty.*tty2'")
|
||||
system1.wait_until_tty_matches(2, "login: ")
|
||||
system1.wait_until_tty_matches("2", "login: ")
|
||||
system1.send_chars("${user}\n")
|
||||
system1.wait_until_tty_matches(2, "login: ${user}")
|
||||
system1.wait_until_tty_matches("2", "login: ${user}")
|
||||
system1.wait_until_succeeds("pgrep login")
|
||||
system1.sleep(2)
|
||||
system1.send_chars("${password}\n")
|
||||
|
|
Loading…
Reference in a new issue