From 5ed6c9e174129edaeb72e4579d5b5ad40e46ee05 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 15 Jun 2026 14:40:33 -0500 Subject: Expect a list of gexps that will be spliced in-place. The #:setup and #:teardown lists will be a list of gexps that will be spliced in-place to generate the final code that will be run to setup tests. If #:setup and #:teardown are not provided, then the `(begin )` that results is a no-op, therefore this should not cause any troubles. --- genenetwork-development.scm | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/genenetwork-development.scm b/genenetwork-development.scm index 7eaf915..ef5f858 100644 --- a/genenetwork-development.scm +++ b/genenetwork-development.scm @@ -1686,15 +1686,10 @@ delete-test-users, etc.) as the genenetwork user via sudo." (string-append site-packages ":" (getenv "PYTHONPATH"))) (setenv "PYTHONPATH" site-packages)) (dynamic-wind - (lambda () ;; Run setup if provided - (for-each - (lambda (setup-cmd) (apply invoke setup-cmd)) - '#$setup)) + (lambda () (begin #$@setup)) ;; Run setup if provided (lambda () (apply invoke '#$test-command)) ;; Run actual tests (lambda () ;; Always run teardowns to clean up. - (for-each - (lambda (teardown-cmd) (apply invoke teardown-cmd)) - '#$teardown) + (begin #$@teardown) ;; run if teardowns provided (chdir orig-dir) (delete-file-recursively tmp-dir)))))))))) -- cgit 1.4.1