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>2018-02-06 17:36:41 +0000
commitc63d14352dff631f2f32789e9f27068c32535ba3 (patch)
tree4cb2071cb12e5b639fb59ab368c7bb4fcbd3032e
parent599a7321685e4cb291ea78b0472cb634903c9776 (diff)
downloadgnu-guix-c63d14352dff631f2f32789e9f27068c32535ba3.tar
gnu-guix-c63d14352dff631f2f32789e9f27068c32535ba3.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 3e4c3d4e3a..e956baa989 100644
--- a/gnu/tests.scm
+++ b/gnu/tests.scm
@@ -268,10 +268,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