#
-# Thierry Parmentelat - INRIA Sophia Antipolis
+# Thierry Parmentelat <thierry.parmentelat@inria.fr>
+# Copyright (C) 2010 INRIA
+#
#
# pool class
#
# the hostnames provided (from a tracker) are considered last
def next_free (self, tracker_hostnames):
- if self.options.quiet:
- print 'TestPool is looking for a %s'%self.message,
+ utils.header('TestPool is looking for a %s'%self.message)
# create 2 lists of (h,i,u) entries, the ones not in the tracker, and the ones in the tracker
in_track_pool=[]
out_track_pool=[]
for (hostname,ip,user_data) in out_track_pool + in_track_pool:
if hostname in self.busy:
continue
- if not self.options.quiet:
- utils.header('TestPool : checking %s'%hostname)
- else:
- print '.',
+ utils.header('TestPool : checking %s'%hostname)
if self.free_hostname(hostname):
- if not self.options.quiet:
- utils.header('%s is available'%hostname)
- else:
- print ''
+ utils.header('%s is available'%hostname)
self.busy.append(hostname)
return (hostname,ip,user_data)
else: