guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: guix-commits
Subject: 02/18: tests: packages: Set system for expected result of package->bag.
Date: Fri, 21 Jul 2023 07:27:02 -0400 (EDT)

janneke pushed a commit to branch hurd-team
in repository guix.

commit 4fbe01491269f788b42a2f89a36676f0fa8f971c
Author: Josselin Poiret <dev@jpoiret.xyz>
AuthorDate: Fri Jul 21 12:14:57 2023 +0200

    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.
---
 tests/packages.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/packages.scm b/tests/packages.scm
index 2b7ab01f7d..2b4f9f8e90 100644
--- a/tests/packages.scm
+++ b/tests/packages.scm
@@ -1277,8 +1277,9 @@
 ;;                               #: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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]