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-04-08 14:41:06 +0100
commit782af29792dbe386b3b2e839d93507e8dffb2fc5 (patch)
treed25c962c8218222dc858e84904ee56d8cb281f74
parenta79fb3393170e9c49c2c753b903b630124770056 (diff)
downloadgnu-guix-782af29792dbe386b3b2e839d93507e8dffb2fc5.tar
gnu-guix-782af29792dbe386b3b2e839d93507e8dffb2fc5.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 8abe6c608b..b943363f2e 100644
--- a/gnu/tests.scm
+++ b/gnu/tests.scm
@@ -214,10 +214,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