gnu: pdf2djvu: Fix tests.

* gnu/packages/djvu.scm (pdf2djvu)[arguments]: Add 'set-home-for-tests' phase.
This commit is contained in:
Guillaume Le Vaillant 2021-11-13 10:13:08 +01:00
parent b5941f7be8
commit a12a41cdd1
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -182,7 +182,10 @@ (define-public pdf2djvu
(substitute* "tests/test-xmp-broken.py"
;; Error message changed in recent versions of XML parser
(("XML parsing failure")
"Error in XMLValidator")))))))
"Error in XMLValidator"))))
(add-before 'check 'set-home-for-tests
(lambda _
(setenv "HOME" "/tmp"))))))
(synopsis "PDF to DjVu converter")
(description
"@code{pdf2djvu} creates DjVu files from PDF files.