[LyX/master] ctests: exit with error if export to .tex fails
Scott Kostyshak
skostysh at lyx.org
Thu Sep 19 20:35:19 UTC 2024
commit c7be9780986932d270ea016764de20da2ed102d6
Author: Scott Kostyshak <skostysh at lyx.org>
Date: Tue Sep 17 21:49:48 2024 +0200
ctests: exit with error if export to .tex fails
Now that we detect and export to the correct TeX format (instead of
assuming pdflatex), we can make the check more strict by giving an
error if LyX exits with error from the export.
---
development/autotests/export.cmake | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/development/autotests/export.cmake b/development/autotests/export.cmake
index d8a737eb63..3d071105ce 100755
--- a/development/autotests/export.cmake
+++ b/development/autotests/export.cmake
@@ -283,6 +283,11 @@ if (extension MATCHES "\\.lyx$")
COMMAND ${lyx} -userdir "${LYX_TESTS_USERDIR}" -E ${_texformat} ${used_tex_file} "${LYX_SOURCE}"
RESULT_VARIABLE _errx)
endif()
+ if(_errx)
+ set(_err -1)
+ Summary(_err "Exporting ${LYX_SOURCE} to format ${_texformat} failed")
+ break()
+ endif()
endif()
endif()
get_md5sum(result_file_name result_md5sum _err)
More information about the lyx-cvs
mailing list