derivations: Adjust builder encoding test.
This is a followup to 9231ef12f2
.
* tests/derivations.scm ("build-expression->derivation and builder
encoding"): Set '%default-port-encoding' to "UTF-8".
This commit is contained in:
parent
611924eb87
commit
8a8e2d2ed5
|
@ -707,12 +707,13 @@
|
||||||
(drv (build-expression->derivation %store "foo" exp)))
|
(drv (build-expression->derivation %store "foo" exp)))
|
||||||
(match (derivation-builder-arguments drv)
|
(match (derivation-builder-arguments drv)
|
||||||
((... builder)
|
((... builder)
|
||||||
(call-with-input-file builder
|
(with-fluids ((%default-port-encoding "UTF-8"))
|
||||||
(lambda (port)
|
(call-with-input-file builder
|
||||||
(list (port-encoding port)
|
(lambda (port)
|
||||||
(->bool
|
(list (port-encoding port)
|
||||||
(string-contains (get-string-all port)
|
(->bool
|
||||||
"(λ (α) (+ α 1))")))))))))
|
(string-contains (get-string-all port)
|
||||||
|
"(λ (α) (+ α 1))"))))))))))
|
||||||
|
|
||||||
(test-assert "build-expression->derivation and derivation-prerequisites"
|
(test-assert "build-expression->derivation and derivation-prerequisites"
|
||||||
(let ((drv (build-expression->derivation %store "fail" #f)))
|
(let ((drv (build-expression->derivation %store "fail" #f)))
|
||||||
|
|
Loading…
Reference in New Issue