guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: tests: Fix opensmtpd test.


From: guix-commits
Subject: 01/01: tests: Fix opensmtpd test.
Date: Wed, 19 Jun 2019 05:55:29 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit bf5929c5303511da338da894ce072c138fe8324f
Author: Tobias Geerinckx-Rice <address@hidden>
Date:   Wed Jun 19 11:48:31 2019 +0200

    tests: Fix opensmtpd test.
    
    * gnu/tests/mail.scm (run-opensmtpd-test) <"mail arrived">: Invoke
    smtpctl by its full file name.
---
 gnu/tests/mail.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/tests/mail.scm b/gnu/tests/mail.scm
index 10e5be7..f064da5 100644
--- a/gnu/tests/mail.scm
+++ b/gnu/tests/mail.scm
@@ -5,6 +5,7 @@
 ;;; Copyright © 2018 Oleg Pykhalov <address@hidden>
 ;;; Copyright © 2018 Clément Lassieur <address@hidden>
 ;;; Copyright © 2019 Christopher Baines <address@hidden>
+;;; Copyright © 2019 Tobias Geerinckx-Rice <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -23,6 +24,7 @@
 
 (define-module (gnu tests mail)
   #:use-module (gnu tests)
+  #:use-module (gnu packages mail)
   #:use-module (gnu system)
   #:use-module (gnu system vm)
   #:use-module (gnu services)
@@ -136,7 +138,9 @@ accept from any for local deliver to mbox
                 (define (queue-empty?)
                   (eof-object?
                    (read-line
-                    (open-input-pipe "smtpctl show queue"))))
+                    (open-input-pipe
+                     (string-append #$(file-append opensmtpd "/sbin/smtpctl")
+                                    " show queue")))))
 
                 (let wait ()
                   (if (queue-empty?)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]