gnu: ocaml-merlin: Fix tests.

* gnu/packages/ocaml.scm (ocaml-merlin) (ocaml5.0-merlin): Fix tests

Change-Id: I8a7e4cdda499a9ad7296741e4ae581d868aba31b
Signed-off-by: Julien Lepiller <julien@lepiller.eu>
This commit is contained in:
Josselin Poiret 2025-07-08 13:41:59 +02:00 committed by Julien Lepiller
parent b755dce100
commit af025cf486
No known key found for this signature in database
GPG key ID: 53D457B2D636EE82

View file

@ -6203,6 +6203,8 @@ interfaces and the standard higher-level merlin protocol.")
(modify-phases %standard-phases (modify-phases %standard-phases
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
;; Tests require a writable cache directory
(setenv "HOME" "/tmp")
(when tests? (when tests?
(invoke "dune" "runtest" "-p" "merlin,dot-merlin-reader"))))))) (invoke "dune" "runtest" "-p" "merlin,dot-merlin-reader")))))))
(propagated-inputs (list ocaml-merlin-lib ocaml-yojson)) (propagated-inputs (list ocaml-merlin-lib ocaml-yojson))
@ -6230,6 +6232,8 @@ Atom.")
(modify-phases %standard-phases (modify-phases %standard-phases
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
;; Tests require a writable cache directory
(setenv "HOME" "/tmp")
(when tests? (when tests?
(invoke "dune" "runtest" "-p" "merlin,dot-merlin-reader"))))))) (invoke "dune" "runtest" "-p" "merlin,dot-merlin-reader")))))))
(propagated-inputs (list ocaml-merlin-lib ocaml-yojson)) (propagated-inputs (list ocaml-merlin-lib ocaml-yojson))