summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ExternalProject
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-02-07 16:46:44 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-02-07 16:46:55 (GMT)
commite2e9a4b4c9a43eca4764d3c88bcfdbe2c582b0f1 (patch)
treef2330b41b72e06a4e3628a5048ef58e4291640b2 /Tests/RunCMake/ExternalProject
parentf93ce447e89414c3f709097a89eec6184bfd5864 (diff)
parent8809183d58c6ffbe9b9479ac43f44c985a4b8a5b (diff)
downloadCMake-e2e9a4b4c9a43eca4764d3c88bcfdbe2c582b0f1.zip
CMake-e2e9a4b4c9a43eca4764d3c88bcfdbe2c582b0f1.tar.gz
CMake-e2e9a4b4c9a43eca4764d3c88bcfdbe2c582b0f1.tar.bz2
Merge topic 'test-download-server-timeout'
8809183d58 Tests: Optionally extend RunCMake.ExternalProject download server timeout Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6952
Diffstat (limited to 'Tests/RunCMake/ExternalProject')
-rw-r--r--Tests/RunCMake/ExternalProject/RunCMakeTest.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/RunCMake/ExternalProject/RunCMakeTest.cmake b/Tests/RunCMake/ExternalProject/RunCMakeTest.cmake
index fde384f..08adee2 100644
--- a/Tests/RunCMake/ExternalProject/RunCMakeTest.cmake
+++ b/Tests/RunCMake/ExternalProject/RunCMakeTest.cmake
@@ -105,12 +105,15 @@ function(__ep_test_with_build_with_server testName)
if(EXISTS "${URL_FILE}")
file(REMOVE "${URL_FILE}")
endif()
+ if(NOT DOWNLOAD_SERVER_TIMEOUT)
+ set(DOWNLOAD_SERVER_TIMEOUT 30)
+ endif()
execute_process(
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_LIST_DIR}/DownloadServer.py --file "${URL_FILE}" ${ARGN}
OUTPUT_FILE ${RunCMake_BINARY_DIR}/${testName}-python.txt
ERROR_FILE ${RunCMake_BINARY_DIR}/${testName}-python.txt
RESULT_VARIABLE result
- TIMEOUT 30
+ TIMEOUT "${DOWNLOAD_SERVER_TIMEOUT}"
)
if(NOT result EQUAL 0)
message(FATAL_ERROR "Failed to start download server:\n ${result}")