From b5303183ef865a243f7746a7c19c1a98ad0fa242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 25 Sep 2024 23:10:26 +0200 Subject: [PATCH] =?UTF-8?q?tests:=20Make=20=E2=80=98tests/print.scm?= =?UTF-8?q?=E2=80=99=20deterministic.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The “package with inputs” test would fail non-deterministically: sometimes ‘package->code’ would pick the ‘glibc’ symbol, sometimes it would take ‘glibc/hurd’, which is an alias for ‘glibc’. * tests/print.scm (pkg-with-inputs)[inputs]: Replace ‘glibc’ with ‘gnu-make’. Change-Id: Ie192adda98d66546fae820a6bcdd5bb4b9f4dae7 --- tests/print.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/print.scm b/tests/print.scm index b4f193b905..f068d380b7 100644 --- a/tests/print.scm +++ b/tests/print.scm @@ -61,8 +61,13 @@ (define-with-source pkg-with-inputs pkg-with-inputs-source (base32 "070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah")))) (build-system (@ (guix build-system gnu) gnu-build-system)) + + ;; Note: For this test, pick variables that do not have aliases; otherwise + ;; 'package->code' might pick one of the other variable names in a + ;; non-deterministic fashion. (inputs (list (@ (gnu packages base) coreutils) - `(,(@ (gnu packages base) glibc) "debug"))) + `(,(@ (gnu packages base) gnu-make) "debug"))) + (home-page "http://gnu.org") (synopsis "Dummy") (description "This is a dummy package.")