guix-commits
[Top][All Lists]
Advanced

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

02/04: tests: mcron: Adjust use of 'wait-for-file'.


From: Ludovic Courtès
Subject: 02/04: tests: mcron: Adjust use of 'wait-for-file'.
Date: Tue, 26 Sep 2017 04:37:37 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 077f1e6384fbd28ffd02e9e10a413bb3c24aaa15
Author: Ludovic Courtès <address@hidden>
Date:   Tue Sep 26 10:09:53 2017 +0200

    tests: mcron: Adjust use of 'wait-for-file'.
    
    Fixes a regression introduced in
    8bd5231485cdeb02078c4294badb3a1e7caa0fe0, whereby returning #<eof> would
    no longer work (since #<eof> would be in the cdr of the result, and thus
    it would not get converted to a string.)
    
    * gnu/tests/base.scm (run-mcron-test)["root's job with command"]: Pass
      #:read to 'wait-for-file'.
---
 gnu/tests/base.scm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gnu/tests/base.scm b/gnu/tests/base.scm
index 959da31..1bc7a70 100644
--- a/gnu/tests/base.scm
+++ b/gnu/tests/base.scm
@@ -544,11 +544,11 @@ in a loop.  See <http://bugs.gnu.org/26931>.")
                (>= gid 100))))
 
           ;; Last, the job that uses a command; allows us to test whether
-          ;; $PATH is sane.  (Note that 'marionette-eval' stringifies objects
-          ;; that don't have a read syntax, hence the string.)
+          ;; $PATH is sane.
           (test-equal "root's job with command"
-            "#<eof>"
-            (wait-for-file "/root/witness-touch" marionette))
+            ""
+            (wait-for-file "/root/witness-touch" marionette
+                           #:read '(@ (ice-9 rdelim) read-string)))
 
           (test-end)
           (exit (= (test-runner-fail-count (test-runner-current)) 0)))))



reply via email to

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