GNU bug report logs -
#29103
[PATCH 0/6] KDE Updates
Previous Next
Full log
Message #14 received at 29103 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/kde-frameworks.scm[arguments]
<#:tests?>: Remove.
<#:phases>'fix-paths-for-test': New phase.
---
gnu/packages/kde-frameworks.scm | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index c1cf4e4aa..78290cf1a 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -2747,9 +2747,17 @@ to easily extend the contacts collection.")
("solid" ,solid)
("threadweaver" ,threadweaver)))
(arguments
- `(#:tests? #f ; FIXME: 1/1 tests fail.
- #:phases
+ `(#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'fix-paths-for-test
+ ;; This test tries to access paths like /home, /usr/bin and /bin/ls
+ ;; which don't exist in the build-container. Change to existing paths.
+ (lambda _
+ (substitute* "autotests/runnercontexttest.cpp"
+ (("/home\"") "/tmp\"") ;; single path-part
+ (("//usr/bin\"") (string-append (getcwd) "\"")) ;; multiple path-parts
+ (("/bin/ls" path)
+ (string-append (assoc-ref %build-inputs "coreutils") path)))))
(add-before 'check 'check-setup
(lambda _
(setenv "HOME" (getcwd))
--
2.13.5
This bug report was last modified 7 years and 203 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.