Skip to content

Commit 74c587b

Browse files
committed
Suppress debug output in new tests
1 parent 343f08f commit 74c587b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

scripts/self-test.lisp

+11-11
Original file line numberDiff line numberDiff line change
@@ -167,23 +167,23 @@ This is useful when we need to test the exact output."
167167
(close s)
168168
;; Work around file-write-date only having second precision.
169169
(sleep 2)
170-
(let ((output ($cmd *self* p)))
170+
(let ((output (kiln-exact-output p)))
171171
(is (string^= "Hello" output))
172-
(is (equal output ($cmd *self* p)))
172+
(is (equal output (kiln-exact-output p)))
173173
(cmd "touch" p)
174-
(is (not (equal output ($cmd *self* p)))))))
174+
(is (not (equal output (kiln-exact-output p)))))))
175175

176176
(5am:test exec-no-unwind
177-
(let ((script (asdf:system-relative-pathname :kiln "test/test-exec.lisp")))
178-
(let ((result ($cmd "kiln" script)))
179-
(is (equal (fmt "Before exec~%exec happened")
180-
result)))))
177+
(let* ((script (asdf:system-relative-pathname :kiln "test/test-exec.lisp"))
178+
(result (kiln-exact-output script)))
179+
(is (equal (fmt "Before exec~%exec happened")
180+
result))))
181181

182182
(5am:test exec-unwind
183-
(let ((script (asdf:system-relative-pathname :kiln "test/test-exec.lisp")))
184-
(let ((result ($cmd "kiln" script "unwind")))
185-
(is (equal (fmt "Before exec~%Unwinding happened~%exec happened")
186-
result)))))
183+
(let* ((script (asdf:system-relative-pathname :kiln "test/test-exec.lisp"))
184+
(result (kiln-exact-output script "unwind")))
185+
(is (equal (fmt "Before exec~%Unwinding happened~%exec happened")
186+
result))))
187187

188188
(defun main (args)
189189
(destructuring-bind (&optional (test 'test)) args

0 commit comments

Comments
 (0)