Skip to content

Commit 14923cb

Browse files
ikappakibbatsov
authored andcommitted
Only output nrepl-mdlw-log file if it exists
1 parent a07a9e6 commit 14923cb

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

test/integration/integration-tests.el

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,11 @@
171171
;; nREPL's capabilities, we dump out the log file generated by
172172
;; the `ikappaki/nrepl-mdlw-log.log` middleware setup on the
173173
;; server earlier.
174-
(with-temp-buffer
175-
(insert-file-contents "nrepl-mdlw-log.log")
176-
(message ":ikappaki/nrepl-mdlw-log-dump\n%s\n" (buffer-string))))))))))
174+
(if (file-exists-p "nrepl-mdlw-log.log")
175+
(with-temp-buffer
176+
(insert-file-contents "nrepl-mdlw-log.log")
177+
(message ":ikappaki/nrepl-mdlw-log-dump\n%s\n" (buffer-string)))
178+
(message ":!nrepl-mdlw-log-found")))))))))
177179

178180
(it "to leiningen"
179181
(with-cider-test-sandbox
@@ -387,9 +389,11 @@
387389
;; nREPL's capabilities, we dump out the log file generated by
388390
;; the `ikappaki/nrepl-mdlw-log.log` middleware setup on the
389391
;; server earlier.
390-
(with-temp-buffer
391-
(insert-file-contents "nrepl-mdlw-log.log")
392-
(message ":ikappaki/nrepl-mdlw-log-dump\n%s\n" (buffer-string)))))))))))
392+
(if (file-exists-p "nrepl-mdlw-log.log")
393+
(with-temp-buffer
394+
(insert-file-contents "nrepl-mdlw-log.log")
395+
(message ":ikappaki/nrepl-mdlw-log-dump\n%s\n" (buffer-string)))
396+
(message ":!nrepl-mdlw-log-found"))))))))))
393397

394398
(provide 'integration-tests)
395399

0 commit comments

Comments
 (0)