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

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

[elpa] externals/org 533a83a989: org-compile-file: Expose logs when runn


From: ELPA Syncer
Subject: [elpa] externals/org 533a83a989: org-compile-file: Expose logs when running Org tests
Date: Sun, 19 Mar 2023 06:58:51 -0400 (EDT)

branch: externals/org
commit 533a83a989d2f0d35f210c73755bbab12ec02582
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    org-compile-file: Expose logs when running Org tests
    
    * lisp/org-macs.el (org-compile-file): Output logs on failure when
    running Org test suite.  This is useful to expose more information in
    CI tests.
---
 lisp/org-macs.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lisp/org-macs.el b/lisp/org-macs.el
index c7f9d5364e..946e19e049 100644
--- a/lisp/org-macs.el
+++ b/lisp/org-macs.el
@@ -380,6 +380,11 @@ it for output."
     ;; Check for process failure.  Output file is expected to be
     ;; located in the same directory as SOURCE.
     (unless (org-file-newer-than-p output time)
+      (ignore (defvar org-batch-test))
+      ;; Display logs when running tests.
+      (when org-batch-test
+        (message "org-compile-file log ::\n-----\n%s\n-----\n"
+                 (with-current-buffer log-buf (buffer-string))))
       (error (format "File %S wasn't produced%s" output err-msg)))
     output))
 



reply via email to

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