'Collect the client logs from a profiler run and put them in a
file named failure-*.log.'

def _get_failure_logs(self, autodir, test, host):

    try:
        (fd, path) = tempfile.mkstemp(suffix='.log', prefix='failure-', dir=self._get_local_profilers_dir(test, host.hostname))
        os.close(fd)
        host.get_file(get_profiler_log_path(autodir), path)
        self._get_profiler_logs(autodir, test, host)
    except (error.AutotestError, error.AutoservError):
        logging.exception('Profiler    failure    log    collection    failed')
