diff options
author | Justus Winter <[email protected]> | 2017-04-11 08:46:09 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-04-11 09:37:02 +0000 |
commit | 1b28d9dbe0260b2a4645c4b5caae11d9f375c942 (patch) | |
tree | 87b34102e92b33e7de9e08aac7178fa3dfd75e1a /tests/openpgp/defs.scm | |
parent | tests: Move common functionality. (diff) | |
download | gnupg-1b28d9dbe0260b2a4645c4b5caae11d9f375c942.tar.gz gnupg-1b28d9dbe0260b2a4645c4b5caae11d9f375c942.zip |
tests: Make tests more robust.
* tests/openpgp/defs.scm (have-opt-always-trust): Execute in empty
ephemeral home directory. This prevents gpg from picking up the
configuration from the current gnupghome (if any).
* tests/migrations/common.scm (untar-armored): Likewise.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'tests/openpgp/defs.scm')
-rw-r--r-- | tests/openpgp/defs.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/openpgp/defs.scm b/tests/openpgp/defs.scm index cb22de7d8..c4b321ca0 100644 --- a/tests/openpgp/defs.scm +++ b/tests/openpgp/defs.scm @@ -201,7 +201,8 @@ (define have-opt-always-trust (catch #f - (call-check `(,(tool 'gpg) --gpgconf-test --always-trust)) + (with-ephemeral-home-directory (lambda ()) + (call-check `(,(tool 'gpg) --gpgconf-test --always-trust))) #t)) (define GPG `(,(tool 'gpg) --no-permission-warning |