mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixos/tests/gnupg: fix prompt handling
Apparently the first characters are missing and therefore it never matches. Work around this by modifying the search string.
This commit is contained in:
parent
da5ad661ba
commit
af3aef919e
1 changed files with 2 additions and 2 deletions
|
|
@ -77,7 +77,7 @@
|
|||
machine.send_chars("pgp_p4ssphrase")
|
||||
machine.wait_until_tty_matches("1", "Passphrases match")
|
||||
machine.send_chars("\n")
|
||||
machine.wait_until_tty_matches("1", "public and secret key created")
|
||||
machine.wait_until_tty_matches("1", "secret key created and signed")
|
||||
|
||||
with subtest("Confirm the key is in the keyring"):
|
||||
machine.wait_until_succeeds(as_alice("gpg --list-secret-keys | grep -q alice@machine"))
|
||||
|
|
@ -92,7 +92,7 @@
|
|||
|
||||
# Note: again, this needs a tty because of pinentry
|
||||
machine.send_chars("ssh-add alice\n")
|
||||
machine.wait_until_tty_matches("1", "Enter passphrase")
|
||||
machine.wait_until_tty_matches("1", "passphrase for")
|
||||
machine.send_chars("ssh_p4ssphrase\n")
|
||||
machine.wait_until_tty_matches("1", "Please enter")
|
||||
machine.send_chars("ssh_agent_p4ssphrase")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue