mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
tests: Look up test.drv' using
search-path'.
* tests/derivations.scm ("parse & export"): Use `search-path' to find `test.drv'.
This commit is contained in:
parent
fb3eec8301
commit
33594aa489
1 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,8 @@ (define %store
|
|||
(test-begin "derivations")
|
||||
|
||||
(test-assert "parse & export"
|
||||
(let* ((b1 (call-with-input-file "test.drv" get-bytevector-all))
|
||||
(let* ((f (search-path %load-path "tests/test.drv"))
|
||||
(b1 (call-with-input-file f get-bytevector-all))
|
||||
(d1 (read-derivation (open-bytevector-input-port b1)))
|
||||
(b2 (call-with-bytevector-output-port (cut write-derivation d1 <>)))
|
||||
(d2 (read-derivation (open-bytevector-input-port b2))))
|
||||
|
|
Loading…
Reference in a new issue