summaryrefslogtreecommitdiff
path: root/cs/test/IceSSL/configuration/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'cs/test/IceSSL/configuration/run.py')
-rwxr-xr-xcs/test/IceSSL/configuration/run.py24
1 files changed, 9 insertions, 15 deletions
diff --git a/cs/test/IceSSL/configuration/run.py b/cs/test/IceSSL/configuration/run.py
index a21f6a11f0e..e9ab6598ce1 100755
--- a/cs/test/IceSSL/configuration/run.py
+++ b/cs/test/IceSSL/configuration/run.py
@@ -10,24 +10,18 @@
import os, sys, getopt
-for toplevel in [".", "..", "../..", "../../..", "../../../..", "../../../../.."]:
- toplevel = os.path.normpath(toplevel)
- if os.path.exists(os.path.join(toplevel, "config", "TestUtil.py")):
- break
-else:
+path = [ ".", "..", "../..", "../../..", "../../../.." ]
+head = os.path.dirname(sys.argv[0])
+if len(head) > 0:
+ path = [os.path.join(head, p) for p in path]
+path = [os.path.abspath(p) for p in path if os.path.exists(os.path.join(p, "scripts", "TestUtil.py")) ]
+if len(path) == 0:
raise "can't find toplevel directory!"
-
-sys.path.append(os.path.join(toplevel, "config"))
-import TestUtil
-TestUtil.processCmdLine()
-
-name = os.path.join("IceSSL", "configuration")
-
-testdir = os.path.dirname(os.path.abspath(__file__))
+sys.path.append(os.path.join(path[0]))
+from scripts import *
#
# The drive letter needs to be removed on Windows or loading the SSL
# plugin will not work.
#
-TestUtil.clientServerTestWithOptions(name, "", " " + os.path.splitdrive(testdir)[1])
-sys.exit(0)
+TestUtil.clientServerTest(additionalClientOptions=os.path.splitdrive(os.getcwd())[1])