aboutsummaryrefslogtreecommitdiff
path: root/tests/monads.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2016-03-06 21:53:28 +0100
committerLudovic Courtès <ludo@gnu.org>2016-03-06 23:16:35 +0100
commitef8de9852eeb9f9ce8e01a2a4f60a057b890b94a (patch)
tree5b66a5003072f0b8cf345a6aec016e3c792cba1f /tests/monads.scm
parent322bb53c7aca0855833d07a7ea55ae243235f285 (diff)
downloadpatches-ef8de9852eeb9f9ce8e01a2a4f60a057b890b94a.tar
patches-ef8de9852eeb9f9ce8e01a2a4f60a057b890b94a.tar.gz
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'.
Diffstat (limited to 'tests/monads.scm')
-rw-r--r--tests/monads.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/monads.scm b/tests/monads.scm
index 62a07a2bc6..4112bcb6cf 100644
--- a/tests/monads.scm
+++ b/tests/monads.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -20,6 +20,7 @@
#:use-module (guix tests)
#:use-module (guix store)
#:use-module (guix monads)
+ #:use-module (guix grafts)
#:use-module (guix derivations)
#:use-module (guix packages)
#:use-module (gnu packages)
@@ -36,6 +37,9 @@
(define %store
(open-connection-for-tests))
+;; Globally disable grafts because they can trigger early builds.
+(%graft? #f)
+
(define %monads
(list %identity-monad %store-monad %state-monad))