Commit 06d12de3 authored by ccicnce113424's avatar ccicnce113424
Browse files

nixosTests.kmscon: wait for `multi-user.target` and check `$TERM`

parent e00ac658
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -29,8 +29,7 @@
  enableOCR = true;

  testScript = ''
    machine.succeed(":")
    # ^ this create a screen
    machine.wait_for_unit("multi-user.target")

    with subtest("ensure we can open a tty"):
      machine.wait_for_text("machine login:")
@@ -38,6 +37,8 @@
      machine.wait_for_text("Password:")
      machine.send_chars("foobar\n")
      machine.wait_for_text("alice@machine")
      machine.send_chars("echo $TERM\n")
      machine.wait_for_text("xterm-256color")
      machine.screenshot("tty.png")
  '';
}