From 42298953bad9f56379810d39295f1f79cabad4be Mon Sep 17 00:00:00 2001 From: Guillaume Le Vaillant Date: Wed, 25 Aug 2021 18:33:20 +0200 Subject: gnu: uhttpmock: Fix tests. * gnu/packages/web.scm (uhttpmock)[arguments]: Add 'set-home-for-tests' phase. --- gnu/packages/web.scm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 786804be02..711bbd615b 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -52,6 +52,7 @@ ;;; Copyright © 2021 Matthew James Kraai ;;; Copyright © 2021 Sarah Morgensen ;;; Copyright © 2021 Jack Hill +;;; Copyright © 2021 Guillaume Le Vaillant ;;; ;;; 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 -- cgit v1.2.3