Fix the `build-expression->derivation' fixed-output test.
* tests/derivations.scm ("build-expression->derivation"): Fix the builder to actually pass a bytevector to `put-bytevector'.master
parent
9809055707
commit
0e383c76ce
|
@ -214,11 +214,12 @@
|
|||
|
||||
(test-assert "build-expression->derivation for fixed-output derivation"
|
||||
(let* ((url "http://ftp.gnu.org/gnu/hello/hello-2.8.tar.gz")
|
||||
(builder `(begin
|
||||
(builder
|
||||
`(begin
|
||||
(use-modules (web client) (web uri)
|
||||
(rnrs io ports))
|
||||
(let ((bv (http-get (string->uri ,url)
|
||||
#:decode-body? #f)))
|
||||
(rnrs io ports) (srfi srfi-11))
|
||||
(let-values (((resp bv)
|
||||
(http-get (string->uri ,url) #:decode-body? #f)))
|
||||
(call-with-output-file %output
|
||||
(lambda (p)
|
||||
(put-bytevector p bv))))))
|
||||
|
|
Reference in New Issue