1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-12-13 09:32:19 +00:00

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.
This commit is contained in:
Ihor Radchenko 2023-03-19 11:10:04 +01:00
parent 07ea7fc443
commit 533a83a989
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B

View File

@ -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))