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.
This commit is contained in:
Scott Kostyshak 2024-09-17 21:49:48 +02:00
parent 03f0392849
commit c7be978098

View File

@ -283,6 +283,11 @@ if (extension MATCHES "\\.lyx$")
COMMAND ${lyx} -userdir "${LYX_TESTS_USERDIR}" -E ${_texformat} ${used_tex_file} "${LYX_SOURCE}" COMMAND ${lyx} -userdir "${LYX_TESTS_USERDIR}" -E ${_texformat} ${used_tex_file} "${LYX_SOURCE}"
RESULT_VARIABLE _errx) RESULT_VARIABLE _errx)
endif() endif()
if(_errx)
set(_err -1)
Summary(_err "Exporting ${LYX_SOURCE} to format ${_texformat} failed")
break()
endif()
endif() endif()
endif() endif()
get_md5sum(result_file_name result_md5sum _err) get_md5sum(result_file_name result_md5sum _err)