mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
tests: Disable grafts when comparing derivations.
Fixes a regression introduced with the grafting of Patch in 3f11f01
.
* tests/packages.scm ("reference to non-existent output"): Wrap in
'parameterize'.
This commit is contained in:
parent
c9323a4c69
commit
862abf8fcd
1 changed files with 9 additions and 8 deletions
|
@ -270,14 +270,15 @@ (define read-at
|
|||
|
||||
(test-assert "reference to non-existent output"
|
||||
;; See <http://bugs.gnu.org/19630>.
|
||||
(let* ((dep (dummy-package "dep"))
|
||||
(p (dummy-package "p"
|
||||
(inputs `(("dep" ,dep "non-existent"))))))
|
||||
(guard (c ((derivation-missing-output-error? c)
|
||||
(and (string=? (derivation-missing-output c) "non-existent")
|
||||
(equal? (package-derivation %store dep)
|
||||
(derivation-error-derivation c)))))
|
||||
(package-derivation %store p))))
|
||||
(parameterize ((%graft? #f))
|
||||
(let* ((dep (dummy-package "dep"))
|
||||
(p (dummy-package "p"
|
||||
(inputs `(("dep" ,dep "non-existent"))))))
|
||||
(guard (c ((derivation-missing-output-error? c)
|
||||
(and (string=? (derivation-missing-output c) "non-existent")
|
||||
(equal? (package-derivation %store dep)
|
||||
(derivation-error-derivation c)))))
|
||||
(package-derivation %store p)))))
|
||||
|
||||
(test-assert "trivial"
|
||||
(let* ((p (package (inherit (dummy-package "trivial"))
|
||||
|
|
Loading…
Reference in a new issue