]> git.lyx.org Git - lyx.git/commitdiff
ctests: exit with error if export to .tex fails
authorScott Kostyshak <skostysh@lyx.org>
Tue, 17 Sep 2024 19:49:48 +0000 (21:49 +0200)
committerScott Kostyshak <skostysh@lyx.org>
Thu, 19 Sep 2024 20:34:37 +0000 (22:34 +0200)
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

index d8a737eb63c6fde5abaa115892789772fb737be8..3d071105ce9c125c21b499325503fdf3b72d24ae 100755 (executable)
@@ -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)