mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
tests: Fix no gpg-agent upon removal of GNUPGHOME.
* tests/gpgscm/gnupg.scm (with-ephemeral-home-directory): Add teadown-fn. * tests/gpgsm/export.scm: Use -no-atexit version and stop-agent. * tests/openpgp/decrypt-session-key.scm: Likewise. * tests/openpgp/decrypt-unwrap-verify.scm: Likewise. * tests/openpgp/defs.scm (have-opt-always-trust): Likewise. (setup-environment-no-atexit): New. (start-agent): Support no use of atexit. * tests/gpgsm/gpgsm-defs.scm (setup-gpgsm-environment-no-atexit): New. * tests/migrations/common.scm (untar-armored): Follow the change of with-ephemeral-home-directory. -- When gpg-agent detects homedir removal, it will automatically exit. Then, call of 'gpgconf --kill all' will fail. So, stop-agent should be called before the removal of homedir. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
cb1731c23c
commit
83529e1bd1
7 changed files with 28 additions and 13 deletions
|
@ -35,7 +35,7 @@
|
|||
|
||||
;; Then, verify the signature with a clean working directory
|
||||
;; containing only Steve's public key.
|
||||
(with-ephemeral-home-directory setup-environment
|
||||
(with-ephemeral-home-directory setup-environment-no-atexit stop-agent
|
||||
(call-check `(,@gpg --import ,steve's-key))
|
||||
(call-check `(,@gpg --verify ,unwrapped)))))
|
||||
'("encsig-2-keys-3" "encsig-2-keys-4")))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue