summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ExternalProject
diff options
context:
space:
mode:
authorThomas Bernard <tbernard@go-engineering.de>2020-09-02 19:36:06 (GMT)
committerThomas Bernard <tbernard@go-engineering.de>2020-09-02 19:40:11 (GMT)
commitbbfdbe25a115de7b61db0c6e3802245dffc0e2d1 (patch)
tree8f5920a9e43ab0b3ad27c58b835446274b81a25b /Tests/RunCMake/ExternalProject
parent68b674b8bc862f943863b48925a5c4d065de8f39 (diff)
downloadCMake-bbfdbe25a115de7b61db0c6e3802245dffc0e2d1.zip
CMake-bbfdbe25a115de7b61db0c6e3802245dffc0e2d1.tar.gz
CMake-bbfdbe25a115de7b61db0c6e3802245dffc0e2d1.tar.bz2
Improve the stability of the ExternalProject download tests
Diffstat (limited to 'Tests/RunCMake/ExternalProject')
-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)