Commit 1dab6eb2 authored by Weijia Wang's avatar Weijia Wang Committed by Francesco Gazzetta
Browse files

nixosTests.shattered-pixel-dungeon: use wait_for_text

parent f7177e24
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -21,9 +21,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
      machine.wait_for_x()
      machine.execute("shattered-pixel-dungeon >&2 &")
      machine.wait_for_window(r"Shattered Pixel Dungeon")
      machine.sleep(5)
      if "Enter" not in machine.get_screen_text():
          raise Exception("Program did not start successfully")
      machine.wait_for_text("Enter")
      machine.screenshot("screen")
    '';
})