blob: ad0c814657f8da305b6dff6249636e07efda4f22 [file] [log] [blame]
from autotest_lib.site_utils.graphite import stats
def cleanup(machine):
timer = None
try:
host = hosts.create_host(machine, initialize=False, auto_monitor=False)
timer = stats.Timer('cleanup_time.%s' % host._get_board_from_afe())
timer.start()
host.cleanup()
finally:
if timer:
timer.stop()
job.parallel_simple(cleanup, machines, log=False)