aboutsummaryrefslogtreecommitdiffstats
path: root/tests/openpgp/decrypt-session-key.scm
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2018-04-04 11:27:08 +0000
committerNIIBE Yutaka <[email protected]>2018-04-04 11:27:08 +0000
commit83529e1bd14a6d39f2a8ecab9fb6aa4c1f344c73 (patch)
tree7a8a1e7c8367547880106c65cf5cac33e677e31e /tests/openpgp/decrypt-session-key.scm
parentscd: Writing KDF resets auth state. (diff)
downloadgnupg-83529e1bd14a6d39f2a8ecab9fb6aa4c1f344c73.tar.gz
gnupg-83529e1bd14a6d39f2a8ecab9fb6aa4c1f344c73.zip
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 <[email protected]>
Diffstat (limited to 'tests/openpgp/decrypt-session-key.scm')
-rwxr-xr-xtests/openpgp/decrypt-session-key.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/openpgp/decrypt-session-key.scm b/tests/openpgp/decrypt-session-key.scm
index 35aa7f36b..c3294e0c6 100755
--- a/tests/openpgp/decrypt-session-key.scm
+++ b/tests/openpgp/decrypt-session-key.scm
@@ -37,7 +37,7 @@
(lambda (name)
(let* ((source (in-srcdir "tests" "openpgp" (string-append name ".asc")))
(key (get-session-key source)))
- (with-ephemeral-home-directory setup-environment
+ (with-ephemeral-home-directory setup-environment-no-atexit stop-agent
(tr:do
(tr:open source)
(tr:gpg "" `(--yes --decrypt --override-session-key ,key))