mirror of https://notabug.org/mthl/cuirass.git
Fix temporary database location.
Don't create it in 'srcdir' to please 'make distcheck'.pull/3/head
parent
5ff38984e8
commit
4a778022f9
|
@ -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)
|
||||
(λ ()
|
||||
|
|
Loading…
Reference in New Issue