mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-27 23:02:16 -05:00
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>
This commit is contained in:
parent
8d25a14aac
commit
a24631a6df
1 changed files with 5 additions and 1 deletions
|
@ -1097,7 +1097,11 @@ (define-public appstream-glib
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "libappstream-glib/as-self-test.c"
|
(substitute* "libappstream-glib/as-self-test.c"
|
||||||
(("g_test_add_func.*as_test_store_local_appdata_func);") ""))
|
(("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")
|
(home-page "https://github.com/hughsie/appstream-glib")
|
||||||
(synopsis "Library for reading and writing AppStream metadata")
|
(synopsis "Library for reading and writing AppStream metadata")
|
||||||
(description "This library provides objects and helper methods to help
|
(description "This library provides objects and helper methods to help
|
||||||
|
|
Loading…
Reference in a new issue