mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Cmake tests: Do not remove temporary data while debugging
The debug mode is set with the environment LYX_DEBUG_LATEX $ export LYX_DEBUG_LATEX=1 The downside: From time to time the need to remove the superfluous dirs $ cd build-dir $ find autotests/out-home -name AbC_\* | xargs rm -rf
This commit is contained in:
parent
c7d0ba0f26
commit
9b2790d472
@ -300,7 +300,16 @@ if(inverted)
|
||||
else()
|
||||
string(COMPARE NOTEQUAL ${_err} 0 _erg)
|
||||
endif()
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E remove_directory "${TempDir}")
|
||||
|
||||
if ($ENV{LYX_DEBUG_LATEX})
|
||||
# Do not remove temporary files if one wants to examine them
|
||||
# for example if setting the env-var LYX_DEBUG_LATEX
|
||||
# This needs a remove all temp-dirs from time to time
|
||||
# $ cd build-dir
|
||||
# $ find autotests/out-home -name AbC_\* | xargs rm -rf
|
||||
else()
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E remove_directory "${TempDir}")
|
||||
endif()
|
||||
if(_TestResultMessage)
|
||||
message(STATUS "Msg Summary:")
|
||||
foreach(_l ${_TestResultMessage})
|
||||
|
Loading…
Reference in New Issue
Block a user