diff options
Diffstat (limited to 'php/test/Slice/keyword/run.py')
-rwxr-xr-x | php/test/Slice/keyword/run.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/php/test/Slice/keyword/run.py b/php/test/Slice/keyword/run.py index e6463037467..39356ecb4cd 100755 --- a/php/test/Slice/keyword/run.py +++ b/php/test/Slice/keyword/run.py @@ -16,17 +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() - |