summaryrefslogtreecommitdiff
path: root/cpp/test/IceSSL/configuration/run.py
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2014-10-21 11:33:27 +0200
committerJose <jose@zeroc.com>2014-10-21 11:33:27 +0200
commite787d0855b51a47f10547d0346faa7fe6def5064 (patch)
treecfb595d9500151f74f8bf32786e0d55c91fe52f5 /cpp/test/IceSSL/configuration/run.py
parentFixed gradle jar installation task to depend on jar task (diff)
downloadice-e787d0855b51a47f10547d0346faa7fe6def5064.tar.bz2
ice-e787d0855b51a47f10547d0346faa7fe6def5064.tar.xz
ice-e787d0855b51a47f10547d0346faa7fe6def5064.zip
OS X 10.10 SSL configuration fixes
Diffstat (limited to 'cpp/test/IceSSL/configuration/run.py')
-rwxr-xr-xcpp/test/IceSSL/configuration/run.py19
1 files changed, 8 insertions, 11 deletions
diff --git a/cpp/test/IceSSL/configuration/run.py b/cpp/test/IceSSL/configuration/run.py
index 44891d3bbe6..61da2e86b04 100755
--- a/cpp/test/IceSSL/configuration/run.py
+++ b/cpp/test/IceSSL/configuration/run.py
@@ -8,7 +8,7 @@
#
# **********************************************************************
-import os, sys
+import os, sys, atexit
path = [ ".", "..", "../..", "../../..", "../../../.." ]
head = os.path.dirname(sys.argv[0])
@@ -23,20 +23,17 @@ import TestUtil
certsPath = os.path.abspath(os.path.join(os.getcwd(), "..", "certs"))
keychainPath = os.path.abspath(os.path.join(certsPath, "Find.keychain"))
+
+def keychainCleanup():
+ os.system("rm -rf %s ../certs/keychain" % keychainPath)
+
+atexit.register(keychainCleanup)
if TestUtil.isDarwin():
- try:
- os.remove(keychainPath)
- except OSError:
- pass
+ keychainCleanup()
+ os.system("mkdir -p ../certs/keychain")
os.system("security create-keychain -p password %s" % keychainPath)
for cert in ["s_rsa_ca1.pfx", "c_rsa_ca1.pfx"]:
os.system("security import %s -f pkcs12 -A -P password -k %s" % (os.path.join(certsPath, cert), keychainPath))
TestUtil.clientServerTest(additionalClientOptions = '"%s"' % os.getcwd())
-
-if TestUtil.isDarwin():
- try:
- os.remove(keychainPath)
- except OSError:
- pass