summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <christopher.baines@digital.cabinet-office.gov.uk>2017-04-08 14:41:06 +0100
committerChristopher Baines <christopher.baines@digital.cabinet-office.gov.uk>2017-10-08 18:16:42 +0100
commit0c3e471201e203474c2d65c85c07d0f08f1cf627 (patch)
treee1ec69976a2a1b4096665769197340b46f2b24d0
parent3ceb70e1e68f8e57fd3e9368cd3e0650ab5e4987 (diff)
downloadgnu-guix-0c3e471201e203474c2d65c85c07d0f08f1cf627.tar
gnu-guix-0c3e471201e203474c2d65c85c07d0f08f1cf627.tar.gz
Make test-modules a parameter
-rw-r--r--gnu/tests.scm9
1 files changed, 5 insertions, 4 deletions
diff --git a/gnu/tests.scm b/gnu/tests.scm
index 97b9cc5107..bd916885d6 100644
--- a/gnu/tests.scm
+++ b/gnu/tests.scm
@@ -256,10 +256,11 @@ the system under test."
(set-record-type-printer! <system-test> write-system-test)
-(define (test-modules)
- "Return the list of modules that define system tests."
- (scheme-modules (dirname (search-path %load-path "guix.scm"))
- "gnu/tests"))
+(define test-modules
+ ;; Return the list of modules that define system tests.
+ (make-parameter
+ (scheme-modules (dirname (search-path %load-path "guix.scm"))
+ "gnu/tests")))
(define (fold-system-tests proc seed)
"Invoke PROC on each system test, passing it the test and the previous