summaryrefslogtreecommitdiff
path: root/php/test/Ice/defaultValue/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'php/test/Ice/defaultValue/run.py')
-rwxr-xr-xphp/test/Ice/defaultValue/run.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/php/test/Ice/defaultValue/run.py b/php/test/Ice/defaultValue/run.py
index 66e12afbf73..39356ecb4cd 100755
--- a/php/test/Ice/defaultValue/run.py
+++ b/php/test/Ice/defaultValue/run.py
@@ -16,16 +16,17 @@ 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
testdir = os.getcwd()
client = os.path.join(testdir, "Client.php")
-print "starting client...",
+sys.stdout.write("starting client... ")
+sys.stdout.flush()
clientProc = TestUtil.startClient(client, startReader = False)
-print "ok"
+print("ok")
clientProc.startReader()
clientProc.waitTestSuccess()