mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
tests: Create temporary directories in '/tmp'.
* tests/gpgscm/tests.scm (mkdtemp): Create temporary directories in
'/tmp' on UNIX, or in '%Temp' on Windows.
* tests/migrations/common.scm (run-test): Turn error into a warning.
* tests/openpgp/defs.scm (start-agent): Likewise.
--
This fixes the problem of GnuPG components being unable to communicate
because of too long GnuPG home directories in important build
environments like the Debian build servers despite the use of socket
directories.
This reverts d75d20909d
.
Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
ceb4b24575
commit
06f1f163e9
3 changed files with 7 additions and 5 deletions
|
@ -271,9 +271,11 @@
|
|||
;; generic name is used. Returns an absolute path.
|
||||
(define (mkdtemp . components)
|
||||
(canonical-path (_mkdtemp (if (null? components)
|
||||
(string-append "gpgscm-" (get-isotime) "-"
|
||||
(basename-suffix *scriptname* ".scm")
|
||||
"-XXXXXX")
|
||||
(path-join
|
||||
(if *win32* (getenv "Temp") "/tmp")
|
||||
(string-append "gpgscm-" (get-isotime) "-"
|
||||
(basename-suffix *scriptname* ".scm")
|
||||
"-XXXXXX"))
|
||||
(apply path-join components)))))
|
||||
|
||||
(define-macro (with-temporary-working-directory . expressions)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue