guix-commits
[Top][All Lists]
Advanced

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

02/04: gnu: libgdata: Fix tests.


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

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

commit 24a472d9d58f6236497f197326f4ba194b918b23
Author: Guillaume Le Vaillant <glv@posteo.net>
AuthorDate: Wed Aug 25 18:38:09 2021 +0200

    gnu: libgdata: Fix tests.
    
    * gnu/packages/gnome.scm (libgdata)[arguments]: Add 'set-home-for-tests'
      phase.
---
 gnu/packages/gnome.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index b23fe4a..1e7f16d 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -60,6 +60,7 @@
 ;;; Copyright © 2020, 2021 Sébastien Lerique <sl@eauchat.org>
 ;;; Copyright © 2021 Trevor Hass <thass@okstate.edu>
 ;;; Copyright © 2021 Solene Rapenne <solene@perso.pw>
+;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1947,13 +1948,15 @@ formats like PNG, SVG, PDF and EPS.")
     (arguments
      '(#:phases
        (modify-phases %standard-phases
+         (add-before 'check 'set-home-for-tests
+           (lambda _
+             (setenv "HOME" "/tmp")))
          (add-before 'check 'disable-failing-tests
            (lambda _
              ;; The PicasaWeb API tests fail with gnome-online-accounts@3.24.2.
              ;; They have been removed in libgdata 0.17.6, so just do the same.
              (substitute* "gdata/tests/Makefile"
-               (("picasaweb\\$\\(EXEEXT\\) ") ""))
-             #t)))))
+               (("picasaweb\\$\\(EXEEXT\\) ") "")))))))
     (native-inputs
      `(("glib:bin" ,glib "bin")
        ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)



reply via email to

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