summaryrefslogtreecommitdiff
path: root/py/test/Slice/structure/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/test/Slice/structure/run.py')
-rwxr-xr-xpy/test/Slice/structure/run.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/py/test/Slice/structure/run.py b/py/test/Slice/structure/run.py
index 9e43cca975f..9408d16c691 100755
--- a/py/test/Slice/structure/run.py
+++ b/py/test/Slice/structure/run.py
@@ -16,13 +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 "starting client...",
+sys.stdout.write("starting client... ")
+sys.stdout.flush()
clientProc = TestUtil.startClient("Client.py", "--Ice.Default.Host=127.0.0.1", startReader = False)
-print "ok"
+print("ok")
clientProc.startReader()
clientProc.waitTestSuccess()
-