mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-11 07:15:54 +03:00
nixosTests.shattered-pixel-dungeon: use wait_for_text
This commit is contained in:
parent
f7177e24aa
commit
1dab6eb2ea
@ -21,9 +21,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
|
|||||||
machine.wait_for_x()
|
machine.wait_for_x()
|
||||||
machine.execute("shattered-pixel-dungeon >&2 &")
|
machine.execute("shattered-pixel-dungeon >&2 &")
|
||||||
machine.wait_for_window(r"Shattered Pixel Dungeon")
|
machine.wait_for_window(r"Shattered Pixel Dungeon")
|
||||||
machine.sleep(5)
|
machine.wait_for_text("Enter")
|
||||||
if "Enter" not in machine.get_screen_text():
|
|
||||||
raise Exception("Program did not start successfully")
|
|
||||||
machine.screenshot("screen")
|
machine.screenshot("screen")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user