mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <justus@g10code.com>
This commit is contained in:
parent
ccd2187212
commit
1b28d9dbe0
2 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue