From 269adb86ad7147501393a79b0db0248d0334695b Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 9 Mar 2021 20:45:51 +0100 Subject: tests/psi: Work around OCR recognition failure For some reason I currently don't have time to investigate, the test has stopped to recognise the "Register new account" text, because the text extracted via OCR was "Reg ster new account" (note: without the "i"). Since we're not testing OCR in general and all we really care here in the test is whether the application starts up, I just changed the "i" to a "." (any character in regex) to make sure the detection passes. Signed-off-by: aszlig --- tests/aszlig/programs/psi.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/aszlig/programs/psi.nix b/tests/aszlig/programs/psi.nix index 05b87697..d42c4c21 100644 --- a/tests/aszlig/programs/psi.nix +++ b/tests/aszlig/programs/psi.nix @@ -20,7 +20,7 @@ machine.wait_for_file("/home/alice/.Xauthority") machine.succeed("xauth merge ~alice/.Xauthority") machine.succeed('su -c "DISPLAY=:0.0 psi" - alice &') - machine.wait_for_text('(?i)Register new account') + machine.wait_for_text('(?i)Reg.ster new account') machine.screenshot('psi') ''; } -- cgit 1.4.1