summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-02-15 14:36:49 (GMT)
committerBrad King <brad.king@kitware.com>2024-02-15 14:40:13 (GMT)
commitedb833d69e75e56cd55f6f8a39f81caec468c9bf (patch)
tree3d8684355faea93207304e0873eb9d98acccd353
parent52b1bb08234d48c710385349402a8cc6800734ed (diff)
downloadCMake-edb833d69e75e56cd55f6f8a39f81caec468c9bf.zip
CMake-edb833d69e75e56cd55f6f8a39f81caec468c9bf.tar.gz
CMake-edb833d69e75e56cd55f6f8a39f81caec468c9bf.tar.bz2
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.
-rw-r--r--Tests/CommandLength/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/CommandLength/CMakeLists.txt b/Tests/CommandLength/CMakeLists.txt
index 6836051..8d75172 100644
--- a/Tests/CommandLength/CMakeLists.txt
+++ b/Tests/CommandLength/CMakeLists.txt
@@ -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}
)