summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/exceptions/run.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2012-04-25 11:59:02 +0200
committerBenoit Foucher <benoit@zeroc.com>2012-04-25 11:59:02 +0200
commit981759144e754de8150e940ce7de89e6e769660d (patch)
tree15154080af508ffa5b3c02c948e636384c84f93a /cpp/test/Ice/exceptions/run.py
parentJava test and bug fixes (diff)
parentRemoved bogus sl/chat/bin directory (diff)
downloadice-981759144e754de8150e940ce7de89e6e769660d.tar.bz2
ice-981759144e754de8150e940ce7de89e6e769660d.tar.xz
ice-981759144e754de8150e940ce7de89e6e769660d.zip
Merge remote-tracking branch 'origin/master' into encoding11
Diffstat (limited to 'cpp/test/Ice/exceptions/run.py')
-rwxr-xr-xcpp/test/Ice/exceptions/run.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/cpp/test/Ice/exceptions/run.py b/cpp/test/Ice/exceptions/run.py
index 43526feb98b..38417d69fad 100755
--- a/cpp/test/Ice/exceptions/run.py
+++ b/cpp/test/Ice/exceptions/run.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# **********************************************************************
#
-# Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
+# Copyright (c) 2003-2012 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
@@ -16,14 +16,13 @@ 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()
-print "tests with AMD server."
+print("tests with AMD server.")
TestUtil.clientServerTest(server = "serveramd")
-print "tests with collocated server."
+print("tests with collocated server.")
TestUtil.collocatedTest()
-