gnu: uhttpmock: Fix tests.

* gnu/packages/web.scm (uhttpmock)[arguments]: Add 'set-home-for-tests' phase.
This commit is contained in:
Guillaume Le Vaillant 2021-08-25 18:33:20 +02:00
parent d9e7d9c408
commit 42298953ba
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -52,6 +52,7 @@
;;; Copyright © 2021 Matthew James Kraai <kraai@ftbfs.org>
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
;;; Copyright © 2021 Jack Hill <jackhill@jackhill.us>
;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
;;;
;;; This file is part of GNU Guix.
;;;
@ -5089,6 +5090,12 @@ (define-public uhttpmock
("pkg-config" ,pkg-config)))
(inputs
`(("libsoup" ,libsoup)))
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'set-home-for-tests
(lambda _
(setenv "HOME" "/tmp"))))))
(home-page "https://gitlab.com/groups/uhttpmock")
(synopsis "Library for mocking web service APIs which use HTTP or HTTPS")
(description