[Pkg-gnupg-commit] [gnupg2] 08/132: tests: Fix setup of ephemeral home directories.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed May 17 03:07:35 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch experimental
in repository gnupg2.

commit 01e84d429aeeb1450012ff0576a6a24de50693c6
Author: Justus Winter <justus at g10code.com>
Date:   Wed Apr 5 15:18:30 2017 +0200

    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 at g10code.com>
---
 tests/openpgp/defs.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/openpgp/defs.scm b/tests/openpgp/defs.scm
index 4271ba0..815a560 100644
--- a/tests/openpgp/defs.scm
+++ b/tests/openpgp/defs.scm
@@ -299,8 +299,8 @@
        (finally (unlink-recursively ,ephemeral-home-directory)
 	 (dynamic-wind
 	     (lambda ()
-	       (force ,setup)
-	       (setenv "GNUPGHOME" ,ephemeral-home-directory #t))
+	       (setenv "GNUPGHOME" ,ephemeral-home-directory #t)
+	       (with-working-directory ,ephemeral-home-directory (force ,setup)))
 	     (lambda () , at expressions)
 	     (lambda () (setenv "GNUPGHOME" ,original-home-directory #t)))))))
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list