summary refs log tree commit diff
path: root/nixos/tests/shattered-pixel-dungeon.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests/shattered-pixel-dungeon.nix')
-rw-r--r--nixos/tests/shattered-pixel-dungeon.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/nixos/tests/shattered-pixel-dungeon.nix b/nixos/tests/shattered-pixel-dungeon.nix
index a256bbdfd73..b4ac1670b5c 100644
--- a/nixos/tests/shattered-pixel-dungeon.nix
+++ b/nixos/tests/shattered-pixel-dungeon.nix
@@ -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")
     '';
 })