summaryrefslogtreecommitdiff
path: root/java/demo/Freeze/library/expect.py
diff options
context:
space:
mode:
Diffstat (limited to 'java/demo/Freeze/library/expect.py')
-rwxr-xr-xjava/demo/Freeze/library/expect.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/java/demo/Freeze/library/expect.py b/java/demo/Freeze/library/expect.py
index 57d07e821b0..fe616da7bcd 100755
--- a/java/demo/Freeze/library/expect.py
+++ b/java/demo/Freeze/library/expect.py
@@ -16,16 +16,16 @@ 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, "demoscript")) ]
if len(path) == 0:
- raise "can't find toplevel directory!"
+ raise RuntimeError("can't find toplevel directory!")
sys.path.append(path[0])
-from demoscript import *
+from demoscript import Util
from demoscript.Freeze import library
-print "cleaning databases...",
+sys.stdout.write("cleaning databases... ")
sys.stdout.flush()
Util.cleanDbDir("db")
-print "ok"
+print("ok")
server = Util.spawn('java Server --Ice.PrintAdapterReady --Freeze.Trace.Evictor=0 --Freeze.Trace.DbEnv=0')
server.expect('.* ready')
@@ -34,12 +34,12 @@ client.expect('>>> ')
library.run(client, server)
-print "running with collocated server"
+print("running with collocated server")
-print "cleaning databases...",
+sys.stdout.write("cleaning databases... ")
sys.stdout.flush()
Util.cleanDbDir("db")
-print "ok"
+print("ok")
server = Util.spawn('java Collocated --Freeze.Trace.Evictor=0 --Freeze.Trace.DbEnv=0')
server.expect('>>> ')