Browse Source

Merge topic 'external_project_download_stability'

bbfdbe25a1 Improve the stability of the ExternalProject download tests

Acked-by: Kitware Robot <[email protected]>
Merge-request: !5183
Brad King 5 years ago
parent
commit
71aa0c7434
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Tests/RunCMake/ExternalProject/DownloadServer.py

+ 5 - 1
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)