aboutsummaryrefslogtreecommitdiff
path: root/gnu/tests/telephony.scm
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2023-12-20 19:30:44 +0100
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2024-01-09 22:10:13 -0500
commit693a4785be0d84f3dacee49f071a33b852f7cd8a (patch)
tree3c4a22f1e418d9ba2e5690cc29fe5012a4f92adf /gnu/tests/telephony.scm
parentc5fb46685f4d6defd122efb3dcbcd8baf3612e17 (diff)
downloadguix-693a4785be0d84f3dacee49f071a33b852f7cd8a.tar.gz
guix-693a4785be0d84f3dacee49f071a33b852f7cd8a.zip
tests: telephony: Fix VPATH builds.
* gnu/tests/telephony.scm (%jami-account-content-sexp): New variable. Compute its value with `read` instead of using `include`. * gnu/tests/data/jami-dummy-account.dat (%jami-account-content-sexp): Remove variable. Make the file contain just the S-expression. Change-Id: I8d37aaf7b739f5f39715bfb8a9b8c9536385fd09 Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Diffstat (limited to 'gnu/tests/telephony.scm')
-rw-r--r--gnu/tests/telephony.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/tests/telephony.scm b/gnu/tests/telephony.scm
index f7d9c73767..396e473756 100644
--- a/gnu/tests/telephony.scm
+++ b/gnu/tests/telephony.scm
@@ -38,7 +38,10 @@
;;; Jami daemon.
;;;
-(include "data/jami-dummy-account.dat") ;defines %jami-account-content-sexp
+(define %jami-account-content-sexp
+ (call-with-input-file
+ (search-path %load-path "gnu/tests/data/jami-dummy-account.dat")
+ read))
(define %dummy-jami-account-archive
;; A Jami account archive is a gzipped JSON file.