Merge pull request #131 from erikarvstedt/fix-test

This commit is contained in:
Cole Helbling 2023-01-09 13:59:21 -08:00 committed by GitHub
commit 42d371d861
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,9 +45,9 @@ import "${nixpkgs}/nixos/tests/make-test-python.nix" ({ pkgs, ...}: {
system1.wait_until_succeeds("[ $(fgconsole) = 2 ]") system1.wait_until_succeeds("[ $(fgconsole) = 2 ]")
system1.wait_for_unit("getty@tty2.service") system1.wait_for_unit("getty@tty2.service")
system1.wait_until_succeeds("pgrep -f 'agetty.*tty2'") 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.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.wait_until_succeeds("pgrep login")
system1.sleep(2) system1.sleep(2)
system1.send_chars("${password}\n") system1.send_chars("${password}\n")