summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-09-04 11:15:23 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-09-04 11:15:34 (GMT)
commit71aa0c7434ab5f44702f75695eb889b9108c85c9 (patch)
tree5dc6696f24aa9863cba4f81e01e9b9d34da40a5b /Tests
parent5cc01fe2ed4ff6e78c421429b6193b6f8dd0c9ec (diff)
parentbbfdbe25a115de7b61db0c6e3802245dffc0e2d1 (diff)
downloadCMake-71aa0c7434ab5f44702f75695eb889b9108c85c9.zip
CMake-71aa0c7434ab5f44702f75695eb889b9108c85c9.tar.gz
CMake-71aa0c7434ab5f44702f75695eb889b9108c85c9.tar.bz2
Merge topic 'external_project_download_stability'
bbfdbe25a1 Improve the stability of the ExternalProject download tests Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5183
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/ExternalProject/DownloadServer.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/RunCMake/ExternalProject/DownloadServer.py b/Tests/RunCMake/ExternalProject/DownloadServer.py
index 3738317..63b7fa7 100644
--- a/Tests/RunCMake/ExternalProject/DownloadServer.py
+++ b/Tests/RunCMake/ExternalProject/DownloadServer.py
@@ -8,8 +8,11 @@ import threading
args = None
outerthread = None
+barrier = threading.Barrier(2)
+
class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
+ barrier.wait()
self.send_response(200)
self.end_headers()
data = b'D'
@@ -46,4 +49,5 @@ if __name__ == "__main__":
serverThread = threading.Thread(target=runServer,args=(args.file,))
serverThread.daemon = True
serverThread.start()
- serverThread.join(15)
+ barrier.wait(60)
+ serverThread.join(20)