Fix temporary database location.

Don't create it in 'srcdir' to please 'make distcheck'.
pull/3/head
Mathieu Lirzin 2016-06-26 19:32:14 +02:00
parent 5ff38984e8
commit 4a778022f9
1 changed files with 4 additions and 4 deletions

View File

@ -34,10 +34,10 @@
;; Global Slot for a job ID in the database.
(make-parameter #t))
(parameterize ((%package-database
;; Use an empty and temporary database for the tests.
(let ((dir (dirname (current-filename))))
(string-append dir "/tmp.db"))))
(parameterize
((%package-database
;; Use an empty and temporary database for the tests.
(string-append (getcwd) "/" (number->string (getpid)) "-tmp.db")))
(dynamic-wind
(const #t)
(λ ()