nixosTests.ft2-clone: make OCR more robust

This commit is contained in:
Francesco Gazzetta 2023-04-21 15:35:00 +02:00
parent 98b6f72610
commit a4807f566d

View File

@ -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")
'';
})