diff options
author | aszlig <aszlig@nix.build> | 2018-12-07 06:26:01 +0100 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2018-12-07 06:26:01 +0100 |
commit | 4efcd4b2f09cbe8b894d4e6c10c30db13ed607fe (patch) | |
tree | b4e6b17ff7b72d5aaa4428bf76aafaf3faf31539 /tests/programs/gnupg | |
parent | f129316707d7827c9914aa11dcfbcff965a2e69d (diff) |
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 <aszlig@nix.build>
Diffstat (limited to 'tests/programs/gnupg')
-rw-r--r-- | tests/programs/gnupg/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |