guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/04: gnu: uhttpmock: Fix tests.


From: guix-commits
Subject: 01/04: gnu: uhttpmock: Fix tests.
Date: Wed, 25 Aug 2021 12:57:00 -0400 (EDT)

glv pushed a commit to branch core-updates-frozen
in repository guix.

commit 42298953bad9f56379810d39295f1f79cabad4be
Author: Guillaume Le Vaillant <glv@posteo.net>
AuthorDate: Wed Aug 25 18:33:20 2021 +0200

    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(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 786804b..711bbd6 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -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 @@ fast and flexible way of exploring HTML from the 
terminal.")
        ("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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]