mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
tests: Fix setup of ephemeral home directories.
* tests/openpgp/defs.scm (with-ephemeral-home-directory): Set GNUPGHOME and cwd to the ephemeral directory before calling the setup function. GnuPG-bug-id: 3047 Fixes-commit: 32b75fb7743f35936d7014fce33c90ba97dfa374 Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
32b75fb774
commit
01e84d429a
@ -299,8 +299,8 @@
|
|||||||
(finally (unlink-recursively ,ephemeral-home-directory)
|
(finally (unlink-recursively ,ephemeral-home-directory)
|
||||||
(dynamic-wind
|
(dynamic-wind
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(force ,setup)
|
(setenv "GNUPGHOME" ,ephemeral-home-directory #t)
|
||||||
(setenv "GNUPGHOME" ,ephemeral-home-directory #t))
|
(with-working-directory ,ephemeral-home-directory (force ,setup)))
|
||||||
(lambda () ,@expressions)
|
(lambda () ,@expressions)
|
||||||
(lambda () (setenv "GNUPGHOME" ,original-home-directory #t)))))))
|
(lambda () (setenv "GNUPGHOME" ,original-home-directory #t)))))))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user