def wait_for_test_servers():
 for (service, info) in Env.BOK_CHOY_SERVERS.iteritems():
  ready = wait_for_server('0.0.0.0', info['port'])
  if (not ready):
   msg = colorize('red', 'Could not contact {} test server'.format(service))
   print msg
   sys.exit(1)

def wait_for_test_servers ( ) : for ( service , info ) in Env . BOK_CHOY_SERVERS . iteritems ( ) : ready = wait_for_server ( '0.0.0.0' , info [ 'port' ] ) if ( not ready ) : msg = colorize ( 'red' , 'Could not contact {} test server' . format ( service ) ) print msg sys . exit ( 1 )
wait until we get a successful response from the servers or time out .