tests: packages: Set system for expected result of package->bag.

* tests/packages.scm ("package->bag"): Parameterize the expected result by the
system used to lower the package to a bag.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Josselin Poiret 2023-07-21 12:14:57 +02:00 committed by Ludovic Courtès
parent 560cb51e7b
commit f8dd637756
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1277,8 +1277,9 @@ (define right-system?
;; #:guile guile))))
(test-equal "package->bag"
`("foo86-hurd" #f (,(package-source gnu-make))
(,(canonical-package glibc)) (,(canonical-package coreutils)))
(parameterize ((%current-system "foo86-hurd"))
`("foo86-hurd" #f (,(package-source gnu-make))
(,(canonical-package glibc)) (,(canonical-package coreutils))))
(let ((bag (package->bag gnu-make "foo86-hurd")))
(list (bag-system bag) (bag-target bag)
(assoc-ref (bag-build-inputs bag) "source")