]> git.lyx.org Git - features.git/commitdiff
CMake export tests now correctly check return code
authorScott Kostyshak <skostysh@lyx.org>
Mon, 21 Jan 2013 01:36:42 +0000 (20:36 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Tue, 22 Jan 2013 08:10:48 +0000 (03:10 -0500)
development/autotests/export.cmake

index bcdcb3a39cba62bfdb111e5422c804ff68f4fe8a..518886b6b9b7c78eb9b2a67447c843e4dbd6e43d 100755 (executable)
@@ -25,7 +25,7 @@ execute_process(
   COMMAND ${lyx} -E ${format} ${file}.${extension} "${LYX_ROOT}/${file}.lyx"
   RESULT_VARIABLE _err)
 string(COMPARE NOTEQUAL  ${_err} 0 _erg)
-if(erg)
+if(_erg)
   message(STATUS "Exporting ${f}.lyx to ${format}")
   message(FATAL_ERROR "Export failed")
 endif()