diff options
Diffstat (limited to 'demoscript/Ice/throughput.py')
-rw-r--r-- | demoscript/Ice/throughput.py | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/demoscript/Ice/throughput.py b/demoscript/Ice/throughput.py index 4f1c14edd23..09dfdd943c7 100644 --- a/demoscript/Ice/throughput.py +++ b/demoscript/Ice/throughput.py @@ -9,43 +9,42 @@ # ********************************************************************** import sys -from demoscript import * -from scripts import Expect +from demoscript import Util def runseries(client): client.expect('==> ', timeout=240) client.sendline('t') client.expect('==> ', timeout=2000) - print "twoway: %s " % (client.before) + print("twoway: %s " % (client.before)) if not Util.fast: client.sendline('o') client.expect('==> ', timeout=2000) - print "oneway: %s " % (client.before) + print("oneway: %s " % (client.before)) client.sendline('r') client.expect('==> ', timeout=2000) - print "receive: %s" % (client.before) + print("receive: %s" % (client.before)) client.sendline('e') client.expect('==> ', timeout=2000) - print "echo: %s" % (client.before) + print("echo: %s" % (client.before)) def run(client, server): - print "testing bytes" + print("testing bytes") runseries(client) - print "testing strings" + print("testing strings") client.sendline('2') runseries(client) - print "testing structs with string... " + print("testing structs with string") client.sendline('3') runseries(client) - print "testing structs with two ints and double... " + print("testing structs with two ints and double") client.sendline('4') runseries(client) |