summaryrefslogtreecommitdiff
path: root/scripts/Util.py
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-06-07 11:33:31 +0200
committerJose <jose@zeroc.com>2019-06-07 11:33:31 +0200
commit7d9486b9113d5bbb533ced14d4e145faf97dcda2 (patch)
tree6c7899e633ddf97c03df49156b1483b23010da3b /scripts/Util.py
parentFix code format fixes (diff)
parentJavaScript browser testing fixes (diff)
downloadice-7d9486b9113d5bbb533ced14d4e145faf97dcda2.tar.bz2
ice-7d9486b9113d5bbb533ced14d4e145faf97dcda2.tar.xz
ice-7d9486b9113d5bbb533ced14d4e145faf97dcda2.zip
Merge remote-tracking branch 'origin/3.7' into swift
Diffstat (limited to 'scripts/Util.py')
-rw-r--r--scripts/Util.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/scripts/Util.py b/scripts/Util.py
index 6d32df7a0ec..a324c538263 100644
--- a/scripts/Util.py
+++ b/scripts/Util.py
@@ -398,8 +398,10 @@ class Windows(Platform):
self.compiler = "v120"
elif out.find("Version 19.00.") != -1:
self.compiler = "v140"
- elif out.find("Version 19.") != -1:
+ elif out.find("Version 19.1") != -1:
self.compiler = "v141"
+ elif out.find("Version 19.2") != -1:
+ self.compiler = "v142"
else:
raise RuntimeError("Unknown compiler version:\n{0}".format(out))
except:
@@ -2672,13 +2674,20 @@ class BrowserProcessController(RemoteProcessController):
self.host)
if url != self.url:
self.url = url
+ ident = current.driver.getCommunicator().stringToIdentity("Browser/ProcessController")
if self.driver:
+ # Clear the previous controller connection if it exists. This ensures that the reload
+ # of the test controller will use a new connection (with Chrome the connection close
+ # callback for the old page is sometime called after the new paged is loaded).
+ with self.cond:
+ if ident in self.processControllerProxies:
+ prx = self.processControllerProxies[ident]
+ self.clearProcessController(prx, prx.ice_getCachedConnection())
self.driver.get(url)
else:
# If no process controller is registered, we request the user to load the controller
# page in the browser. Once loaded, the controller will register and we'll redirect to
# the correct testsuite page.
- ident = current.driver.getCommunicator().stringToIdentity("Browser/ProcessController")
prx = None
with self.cond:
while True:
@@ -3212,7 +3221,9 @@ class JavaMapping(Mapping):
"IceSSL.Keystore": "server.bks" if isinstance(process, Server) else "client.bks"
})
else:
+ # WORKAROUND JDK 11 sporadic connection failures with OpenSSL TLS 1.3 enabled server
props.update({
+ "IceSSL.Protocols": "TLS1_2",
"IceSSL.Keystore": "server.jks" if isinstance(process, Server) else "client.jks",
})
return props