summary refs log tree commit diff
path: root/gnu/packages/djvu.scm
diff options
context:
space:
mode:
authorGuillaume Le Vaillant <glv@posteo.net>2021-11-13 10:13:08 +0100
committerGuillaume Le Vaillant <glv@posteo.net>2021-11-13 10:33:54 +0100
commita12a41cdd10cfe7e6ba75df4343c3aac2664fc38 (patch)
tree98f3f78b12b700e7beb92f25dc82a210dcd55b51 /gnu/packages/djvu.scm
parentb5941f7be80f142a5bcbdab317c0450c7afca84b (diff)
downloadguix-a12a41cdd10cfe7e6ba75df4343c3aac2664fc38.tar.gz
gnu: pdf2djvu: Fix tests.
* gnu/packages/djvu.scm (pdf2djvu)[arguments]: Add 'set-home-for-tests' phase.
Diffstat (limited to 'gnu/packages/djvu.scm')
-rw-r--r--gnu/packages/djvu.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/packages/djvu.scm b/gnu/packages/djvu.scm
index 39c2b20d7e..a4cd4da2ed 100644
--- a/gnu/packages/djvu.scm
+++ b/gnu/packages/djvu.scm
@@ -182,7 +182,10 @@ a continuous layout.")
              (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.