nixosTests.shattered-pixel-dungeon: use wait_for_text
This commit is contained in:
parent
f7177e24aa
commit
1dab6eb2ea
1 changed files with 1 additions and 3 deletions
|
@ -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 a new issue