about summary refs log tree commit diff
path: root/nixos/tests/ft2-clone.nix
diff options
context:
space:
mode:
authorFrancesco Gazzetta <fgaz@fgaz.me>2023-04-21 15:35:00 +0200
committerFrancesco Gazzetta <fgaz@fgaz.me>2023-04-21 15:35:20 +0200
commita4807f566dab6aeb85e72aeb66a7006336148cfd (patch)
tree75312f6b3d1df5d458f551d704037bc2341049ea /nixos/tests/ft2-clone.nix
parent98b6f726100db2a979c91a3bbce0568ce832f42d (diff)
nixosTests.ft2-clone: make OCR more robust
Diffstat (limited to 'nixos/tests/ft2-clone.nix')
-rw-r--r--nixos/tests/ft2-clone.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/nixos/tests/ft2-clone.nix b/nixos/tests/ft2-clone.nix
index 3c90b3d3fa201..a8395d4ebaa62 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")
     '';
 })