Home | History | Annotate | Download | only in control_segments
      1 from autotest_lib.server import crashcollect
      2 from autotest_lib.server import utils
      3 
      4 
      5 def crashinfo(machine):
      6     if utils.machine_is_testbed(machine):
      7         logging.info('testbed does not need to get crash info.')
      8         return
      9 
     10     host = hosts.create_host(machine)
     11     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))
     17 
     18 job.parallel_simple(crashinfo, machines, log=False)
     19