blob: 82f075f1b0a14998aee35eeb482e61a0df6dfafb [file] [log] [blame]
jadmanski96b78072009-05-21 22:21:04 +00001from autotest_lib.server import crashcollect
Dan Shif103b662016-01-08 10:44:46 -08002from autotest_lib.server import utils
jadmanski96b78072009-05-21 22:21:04 +00003
4
mbligh084bc172008-10-18 14:02:45 +00005def crashinfo(machine):
Dan Shif103b662016-01-08 10:44:46 -08006 if utils.machine_is_testbed(machine):
7 logging.info('testbed does not need to get crash info.')
8 return
9
Richard Barnette18dc8882016-08-11 17:08:48 -070010 host = hosts.create_host(machine)
Allen Liab020912016-09-19 18:07:41 -070011 if has_failed_tests:
12 crashcollect.get_crashinfo(host, test_start_time)
13 else:
14 crashcollect.report_crashdumps(host)
15 crashcollect.fetch_orphaned_crashdumps(
16 host, crashcollect.get_host_infodir(host))
mbligh54931292008-11-23 14:35:51 +000017
mbligh084bc172008-10-18 14:02:45 +000018job.parallel_simple(crashinfo, machines, log=False)