Add an extra check for existence of Autoserv results in GatherLogsTask -- in certain recovery cases this can be false, previously leading to an exception.

Signed-off-by: Steve Howard <showard@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3133 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/scheduler/monitor_db_unittest.py b/scheduler/monitor_db_unittest.py
index f85f5d9..761b556 100644
--- a/scheduler/monitor_db_unittest.py
+++ b/scheduler/monitor_db_unittest.py
@@ -1673,6 +1673,7 @@
         self.pidfile_monitor.exit_code.expect_call().and_return(exit_code)
         if exit_code != 0:
             self._setup_post_job_run_monitor('.collect_crashinfo_execute')
+        self.pidfile_monitor.has_process.expect_call().and_return(True)
         self._expect_copy_results(monitor=self.pidfile_monitor,
                                   queue_entry=self.queue_entry)
         parse_task = monitor_db.FinalReparseTask.expect_new([self.queue_entry])