mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
nixosTests.ft2-clone: make OCR more robust
This commit is contained in:
parent
98b6f72610
commit
a4807f566d
@ -26,9 +26,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
|
||||
|
||||
machine.wait_for_window(r"Fasttracker")
|
||||
machine.sleep(5)
|
||||
# One of the few words that actually get recognized
|
||||
if "Songlen" not in machine.get_screen_text():
|
||||
raise Exception("Program did not start successfully")
|
||||
machine.wait_for_text(r"(Songlen|Repstart|Time|About|Nibbles|Help)")
|
||||
machine.screenshot("screen")
|
||||
'';
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user