From a4807f566dab6aeb85e72aeb66a7006336148cfd Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Fri, 21 Apr 2023 15:35:00 +0200 Subject: [PATCH] nixosTests.ft2-clone: make OCR more robust --- nixos/tests/ft2-clone.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nixos/tests/ft2-clone.nix b/nixos/tests/ft2-clone.nix index 3c90b3d3fa20..a8395d4ebaa6 100644 --- a/nixos/tests/ft2-clone.nix +++ b/nixos/tests/ft2-clone.nix @@ -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") ''; })