mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-16 05:26:58 +08:00
Tests/CommandLength: Refactor test commands to reduce test run time
Since 2024-02-09 or so this test frequently times out on a few of our Windows CI runners. Use fewer but longer command lines to achieve a similar total command length. By running fewer commands, the test takes much less time.
This commit is contained in:
@@ -10,7 +10,10 @@ set(msg "${msg} ${msg}")
|
||||
set(msg "${msg} ${msg}")
|
||||
set(msg "${msg} ${msg}")
|
||||
set(msg "${msg} ${msg}")
|
||||
foreach(i RANGE 1 1000)
|
||||
set(msg "${msg} ${msg}")
|
||||
set(msg "${msg} ${msg}")
|
||||
set(msg "${msg} ${msg}")
|
||||
foreach(i RANGE 1 125)
|
||||
add_custom_command(TARGET CommandLength POST_BUILD VERBATIM
|
||||
COMMAND ${CMAKE_COMMAND} -E echo "${i} ${msg}" > log/${i}
|
||||
)
|
||||
|
Reference in New Issue
Block a user