Home GnuPG
Diffusion GnuPG 32b75fb7743f

tests: Fix setup of ephemeral home directories.

Description

tests: Fix setup of ephemeral home directories.

* tests/openpgp/defs.scm (with-ephemeral-home-directory): Create
configuration files when we enter the context.
* tests/openpgp/setup.scm: Do not use an ephemeral home directory.
Tests should always use the cwd.
* tests/gpgsm/setup.scm: Likewise.
* tests/gpgsm/export.scm: Add explicit constructor function.
* tests/openpgp/decrypt-session-key.scm: Likewise.
* tests/openpgp/decrypt-unwrap-verify.scm: Likewise.

Previously, ephemeral homedirectories lacked a configuration, hence
GnuPG tried to start backend daemons using their installed locations.
Fix this by explicitly creating a suitable configuration.

  • GnuPG-bug-id: T3047
  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on Apr 4 2017, 2:32 PM
Parents
rG6261611d3786: gpgscm: Fix copying values.
Branches
Unknown
Tags
Unknown
Tasks
T3047: decrypt-unwrap-verify.scm "make check" failure with gnupg 2.1.20