summaryrefslogtreecommitdiff
path: root/java/test/Ice/operations/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'java/test/Ice/operations/run.py')
-rwxr-xr-xjava/test/Ice/operations/run.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/java/test/Ice/operations/run.py b/java/test/Ice/operations/run.py
index 10c33f9c66b..3f51c03c0de 100755
--- a/java/test/Ice/operations/run.py
+++ b/java/test/Ice/operations/run.py
@@ -16,22 +16,21 @@ 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(path[0]))
-from scripts import *
+ raise RuntimeError("can't find toplevel directory!")
+sys.path.append(os.path.join(path[0], "scripts"))
+import TestUtil
-print "tests with regular server."
+print("tests with regular server.")
TestUtil.clientServerTest(additionalClientOptions = "--Ice.Warn.AMICallback=0")
-print "tests with AMD server."
+print("tests with AMD server.")
TestUtil.clientServerTest(additionalClientOptions = "--Ice.Warn.AMICallback=0", server="test.Ice.operations.AMDServer")
-print "tests with TIE server."
+print("tests with TIE server.")
TestUtil.clientServerTest(additionalClientOptions = "--Ice.Warn.AMICallback=0", server="test.Ice.operations.TieServer")
-print "tests with AMD TIE server."
+print("tests with AMD TIE server.")
TestUtil.clientServerTest(additionalClientOptions = "--Ice.Warn.AMICallback=0", server="test.Ice.operations.AMDTieServer")
-print "tests with collocated server."
+print("tests with collocated server.")
TestUtil.collocatedTest()
-