mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-25 20:19:18 -05:00
tests: opensmtpd: Check /var/spool/mail instead of /var/mail.
The test had been failing since the upgrade to 6.6.3p1 in commit
2dbfd8eec4
.
* gnu/services/mail.scm (opensmtpd-activation): Create /var/spool/mail.
* gnu/tests/mail.scm (run-opensmtpd-test): Check /var/spool/mail instead
of /var/mail.
This commit is contained in:
parent
c215d9ec1c
commit
a37e03d60e
2 changed files with 6 additions and 4 deletions
|
@ -1670,7 +1670,9 @@ (define opensmtpd-activation
|
||||||
;; Create mbox and spool directories.
|
;; Create mbox and spool directories.
|
||||||
(mkdir-p "/var/mail")
|
(mkdir-p "/var/mail")
|
||||||
(mkdir-p "/var/spool/smtpd")
|
(mkdir-p "/var/spool/smtpd")
|
||||||
(chmod "/var/spool/smtpd" #o711))))))
|
(chmod "/var/spool/smtpd" #o711)
|
||||||
|
(mkdir-p "/var/spool/mail")
|
||||||
|
(chmod "/var/spool/mail" #o711))))))
|
||||||
|
|
||||||
(define %opensmtpd-pam-services
|
(define %opensmtpd-pam-services
|
||||||
(list (unix-pam-service "smtpd")))
|
(list (unix-pam-service "smtpd")))
|
||||||
|
|
|
@ -99,8 +99,8 @@ (define (read-reply-code port)
|
||||||
|
|
||||||
(test-assert "mbox is empty"
|
(test-assert "mbox is empty"
|
||||||
(marionette-eval
|
(marionette-eval
|
||||||
'(and (file-exists? "/var/mail")
|
'(and (file-exists? "/var/spool/mail")
|
||||||
(not (file-exists? "/var/mail/root")))
|
(not (file-exists? "/var/spool/mail/root")))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-eq "accept an email"
|
(test-eq "accept an email"
|
||||||
|
@ -150,7 +150,7 @@ (define (queue-empty?)
|
||||||
|
|
||||||
(let wait ((n 20))
|
(let wait ((n 20))
|
||||||
(cond ((queue-empty?)
|
(cond ((queue-empty?)
|
||||||
(file-exists? "/var/mail/root"))
|
(file-exists? "/var/spool/mail/root"))
|
||||||
((zero? n)
|
((zero? n)
|
||||||
(error "root mailbox didn't show up"))
|
(error "root mailbox didn't show up"))
|
||||||
(else
|
(else
|
||||||
|
|
Loading…
Reference in a new issue