From ef8de9852eeb9f9ce8e01a2a4f60a057b890b94a Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sun, 6 Mar 2016 21:53:28 +0100 Subject: tests: Disable grafting by default for most tests. This allows tests to run as expected even in the presence of replacements among the bootstrap packages, such as Perl (commit d8173f21f7b4e3cb83541b8fa70621d2b6d4ce1c). * tests/cpan.scm: Add (%graft? #f). * tests/derivations.scm: Likewise. * tests/graph.scm: Likewise. * tests/monads.scm: Likewise. * tests/profiles.scm: Likewise. * tests/gexp.scm: Likewise. ("gexp->derivation vs. grafts"): Explicitly reenable grafting before, and disable it after, using 'set-grafting'. --- tests/cpan.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/cpan.scm') diff --git a/tests/cpan.scm b/tests/cpan.scm index 2f9513519e..583684104d 100644 --- a/tests/cpan.scm +++ b/tests/cpan.scm @@ -21,9 +21,13 @@ #:use-module (guix base32) #:use-module (guix hash) #:use-module (guix tests) + #:use-module (guix grafts) #:use-module (srfi srfi-64) #:use-module (ice-9 match)) +;; Globally disable grafts because they can trigger early builds. +(%graft? #f) + (define test-json "{ \"metadata\" : { @@ -44,7 +48,7 @@ ], \"abstract\" : \"Fizzle Fuzz\", \"download_url\" : \"http://example.com/Foo-Bar-0.1.tar.gz\", - \"author\" : \"GUIX\", + \"author\" : \"Guix\", \"version\" : \"0.1\" }") -- cgit v1.2.3