From 4efcd4b2f09cbe8b894d4e6c10c30db13ed607fe Mon Sep 17 00:00:00 2001 From: aszlig Date: Fri, 7 Dec 2018 06:26:01 +0100 Subject: tests/gnupg: Fix OCR match on passphrase dialog Sinc the Tesseract update to version 4.0.0[1], the OCR result is much better than what we had before. The string we want to match is the following: Please enter the passphrase to unlock the OpenPGP secret key In the previous Tesseract alpha version (4.00.00alpha-git-20170410), the word "passphrase" was detected with an upper-case "P", which now is no longer the case. Nevertheless, I've changed it to matching both "Passphrase" and "passphrase", just to be sure. [1]: https://github.com/NixOS/nixpkgs/commit/d4b9752212f77b122b9166dc52f Signed-off-by: aszlig --- tests/programs/gnupg/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/programs') diff --git a/tests/programs/gnupg/default.nix b/tests/programs/gnupg/default.nix index 43ba9f05..064770c9 100644 --- a/tests/programs/gnupg/default.nix +++ b/tests/programs/gnupg/default.nix @@ -126,7 +126,7 @@ in { 'echo encrypt me | gpg -sea -r ECC15FE1 > encrypted_x.asc & echo $!' ); chomp $pid; - $machine->waitForText(qr/Passphrase/); + $machine->waitForText(qr/[Pp]assphrase/); $machine->screenshot("passphrase_dialog"); $machine->sendChars("supersecret\n"); $machine->waitUntilFails("kill -0 $pid"); -- cgit 1.4.1