Browse Source

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.
Brad King 1 year ago
parent
commit
edb833d69e
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Tests/CommandLength/CMakeLists.txt

+ 4 - 1
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}
     )