From edb833d69e75e56cd55f6f8a39f81caec468c9bf Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 15 Feb 2024 09:36:49 -0500 Subject: 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. --- Tests/CommandLength/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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} ) -- cgit v0.12