[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: appstream-glib: Fix failing tests.
From: |
guix-commits |
Subject: |
branch master updated: gnu: appstream-glib: Fix failing tests. |
Date: |
Fri, 20 Aug 2021 19:00:43 -0400 |
This is an automated email from the git hooks/post-receive script.
lfam pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new d548fa9 gnu: appstream-glib: Fix failing tests.
d548fa9 is described below
commit d548fa91446d4738adb1a5289746bf9363fff398
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Fri Aug 20 15:55:26 2021 +0200
gnu: appstream-glib: Fix failing tests.
* gnu/packages/glib.scm (appstream-glib)[arguments]<#:phases>{set-home}:
Add a
new phase 'set-home' for tests that want to write to $HOME.
Signed-off-by: Leo Famulari <leo@famulari.name>
---
gnu/packages/glib.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
index 91ef450..8ed1e3a 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -1107,7 +1107,11 @@ Some codes examples can be find at:
(lambda _
(substitute* "libappstream-glib/as-self-test.c"
(("g_test_add_func.*as_test_store_local_appdata_func);") ""))
- #t)))))
+ #t))
+ (add-before 'check 'set-home
+ (lambda _
+ ;; Some tests want write access there.
+ (setenv "HOME" "/tmp"))))))
(home-page "https://github.com/hughsie/appstream-glib")
(synopsis "Library for reading and writing AppStream metadata")
(description "This library provides objects and helper methods to help
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: appstream-glib: Fix failing tests.,
guix-commits <=