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>2019-04-09 00:16:42 +0100
commit8b289be38d3eb62863ac6d04d8a1c5067c0d6ffe (patch)
tree4a99a76c06ab2fd0f8631f1057a500bde75f0798
parent44e6caf5d29b37e5aeaebb363d3fce4b17642ca5 (diff)
downloadgnu-guix-8b289be38d3eb62863ac6d04d8a1c5067c0d6ffe.tar
gnu-guix-8b289be38d3eb62863ac6d04d8a1c5067c0d6ffe.tar.gz
Make test-modules a parameter
-rw-r--r--gnu/tests.scm11
1 files changed, 6 insertions, 5 deletions
diff --git a/gnu/tests.scm b/gnu/tests.scm
index 0871b4c6f7..9acd83e31f 100644
--- a/gnu/tests.scm
+++ b/gnu/tests.scm
@@ -255,11 +255,12 @@ 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"
- #:warn warn-about-load-error))
+(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"
+ #:warn warn-about-load-error)))
(define (fold-system-tests proc seed)
"Invoke PROC on each system test, passing it the test and the previous