summary refs log tree commit diff
path: root/gnu/tests/mail.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2023-05-06 15:07:09 +0200
committerLudovic Courtès <ludo@gnu.org>2023-05-06 17:12:45 +0200
commitf51888272558d98cf5c196b93fb6c499056fbf6c (patch)
tree244d8f69bffd21757be7604af1ebb3f2bc8318dd /gnu/tests/mail.scm
parent1cb0dee3a31c6d235389d4d9787fa583c2babc30 (diff)
downloadguix-f51888272558d98cf5c196b93fb6c499056fbf6c.tar.gz
tests: Add missing module imports for marionette-evaluated code.
This missing imports became apparent with commit
a09c7da8f8d8e732f969cf0a09aaa78f87032ab1, which runs the marionette
service in a fresh Guile process with fewer imports.

* gnu/tests/databases.scm (run-postgresql-test, run-timescaledb-test)
(run-mysql-test): Add missing module imports for code passed to
'marionette-eval'.
* gnu/tests/docker.scm (run-docker-test, run-docker-system-test): Likewise.
* gnu/tests/mail.scm (run-dovecot-test, run-getmail-test): Likewise.
* gnu/tests/monitoring.scm (run-zabbix-server-test): Likewise.
* gnu/tests/pam.scm (run-test-pam-limits): Likewise.
* gnu/tests/reconfigure.scm (run-switch-to-system-test)
(run-install-bootloader-test): Likewise.
* gnu/tests/security-token.scm (run-pcscd-test): Likewise.
* gnu/tests/install.scm (gui-test-program): Likewise.
* gnu/tests/telephony.scm (run-jami-test): Add modules to
the #:imported-modules argument of 'marionette-operating-system'.
[test]: Remove them from 'with-imported-modules'; remove
'with-extensions'.  Add "d-bus tooling loaded" test to set up %load-path
and %load-compiled-path so the marionette process can find
guile-ac-d-bus and guile-packrat.
Diffstat (limited to 'gnu/tests/mail.scm')
-rw-r--r--gnu/tests/mail.scm8
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/tests/mail.scm b/gnu/tests/mail.scm
index dc1f18b3f1..dcb8f08ea8 100644
--- a/gnu/tests/mail.scm
+++ b/gnu/tests/mail.scm
@@ -382,7 +382,9 @@ Subject: Hello Nice to meet you!")
             (marionette-eval
              '(begin
                 (use-modules (ice-9 ftw)
-                             (ice-9 match))
+                             (ice-9 match)
+                             (rnrs io ports))
+
                 (let ((TESTBOX/new "/home/alice/Maildir/TESTBOX/new/"))
                   (match (scandir TESTBOX/new)
                     (("." ".." message-file)
@@ -556,7 +558,9 @@ Subject: Hello Nice to meet you!")
              (marionette-eval
               '(begin
                  (use-modules (ice-9 ftw)
-                              (ice-9 match))
+                              (ice-9 match)
+                              (rnrs io ports))
+
                  (let ((TESTBOX/new "/home/alice/TestMaildir/new/"))
                    (match (scandir TESTBOX/new)
                      (("." ".." message-file)