#!@PYTHON@
# This file is part of GNUnet.
-# (C) 2010 Christian Grothoff (and other contributing authors)
+# (C) 2010, 2018 Christian Grothoff (and other contributing authors)
#
# GNUnet is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
def success_restart_cont (check):
global success
- print 'Peers connected successfully after restart'
+ print('Peers connected successfully after restart')
server.stop ()
client.stop ()
success = True;
def fail_restart_cont (check):
global success
success = False;
- print 'Peers failed to connect after restart'
+ print('Peers failed to connect after restart')
check.evaluate(True)
def success_connect_cont (check):
- print 'Peers connected successfully'
+ print('Peers connected successfully')
server.stop ()
client.stop ()
def fail_connect_cont (check):
global success
success= False;
- print 'Peers failed to connect'
+ print('Peers failed to connect')
check.evaluate(True)
global server
global client
- print 'Test was aborted!'
+ print('Test was aborted!')
if (None != server):
server.stop ()
if (None != client):
if (True != server.start()):
- print 'Failed to start server'
+ print('Failed to start server')
if (None != server):
server.stop ()
if (None != server):
time.sleep(5)
if (True != client.start()):
- print 'Failed to start client'
+ print('Failed to start client')
if (None != server):
server.stop ()
if (None != server):
try:
run ()
except (KeyboardInterrupt, SystemExit):
- print 'Test interrupted'
+ print('Test interrupted')
server.stop ()
client.stop ()
cleanup ()
else:
sys.exit(0)
-
\ No newline at end of file
+