guix-commits
[Top][All Lists]
Advanced

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

[shepherd] 02/04: tests: #:stop returns #f.


From: Ludovic Courtès
Subject: [shepherd] 02/04: tests: #:stop returns #f.
Date: Sun, 24 Dec 2023 09:06:18 -0500 (EST)

civodul pushed a commit to branch main
in repository shepherd.

commit 596bf7534f1ab88e30ba0f857aaab3e4f98d4721
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun Dec 24 12:04:47 2023 +0100

    tests: #:stop returns #f.
    
    This silences the “Service ~a might have failed to stop” message.
    
    * tests/signals.sh: Have stop return #f.
---
 tests/signals.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/signals.sh b/tests/signals.sh
index 02c2503..59fd183 100644
--- a/tests/signals.sh
+++ b/tests/signals.sh
@@ -40,7 +40,8 @@ cat > "$conf"<<EOF
         #:stop  (lambda _
                   (call-with-output-file "$stamp"
                     (lambda (port)
-                      (display "stopped" port))))
+                      (display "stopped" port)))
+                   #f)
         #:respawn? #f)))
 (start-service (lookup-service 'test))
 EOF



reply via email to

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