emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/cider 14923cb8c3 2/2: Only output nrepl-mdlw-log file if i


From: ELPA Syncer
Subject: [nongnu] elpa/cider 14923cb8c3 2/2: Only output nrepl-mdlw-log file if it exists
Date: Tue, 17 Jan 2023 04:58:52 -0500 (EST)

branch: elpa/cider
commit 14923cb8c3be94a40fe7ca213948d1137b1cb3dc
Author: ikappaki <ikappaki@users.noreply.github.com>
Commit: Bozhidar Batsov <bozhidar@batsov.dev>

    Only output nrepl-mdlw-log file if it exists
---
 test/integration/integration-tests.el | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/test/integration/integration-tests.el 
b/test/integration/integration-tests.el
index b1e52eae20..8905aab5c4 100644
--- a/test/integration/integration-tests.el
+++ b/test/integration/integration-tests.el
@@ -171,9 +171,11 @@
                 ;; nREPL's capabilities, we dump out the log file generated by
                 ;; the `ikappaki/nrepl-mdlw-log.log` middleware setup on the
                 ;; server earlier.
-                (with-temp-buffer
-                  (insert-file-contents "nrepl-mdlw-log.log")
-                  (message ":ikappaki/nrepl-mdlw-log-dump\n%s\n" 
(buffer-string))))))))))
+                (if (file-exists-p "nrepl-mdlw-log.log")
+                    (with-temp-buffer
+                      (insert-file-contents "nrepl-mdlw-log.log")
+                      (message ":ikappaki/nrepl-mdlw-log-dump\n%s\n" 
(buffer-string)))
+                  (message ":!nrepl-mdlw-log-found")))))))))
 
   (it "to leiningen"
     (with-cider-test-sandbox
@@ -387,9 +389,11 @@
                ;; nREPL's capabilities, we dump out the log file generated by
                ;; the `ikappaki/nrepl-mdlw-log.log` middleware setup on the
                ;; server earlier.
-               (with-temp-buffer
-                  (insert-file-contents "nrepl-mdlw-log.log")
-                  (message ":ikappaki/nrepl-mdlw-log-dump\n%s\n" 
(buffer-string)))))))))))
+               (if (file-exists-p "nrepl-mdlw-log.log")
+                   (with-temp-buffer
+                     (insert-file-contents "nrepl-mdlw-log.log")
+                     (message ":ikappaki/nrepl-mdlw-log-dump\n%s\n" 
(buffer-string)))
+                 (message ":!nrepl-mdlw-log-found"))))))))))
 
 (provide 'integration-tests)
 



reply via email to

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