In scheduler check for existence of results before trying to write the 
.archiver_failed file.

Signed-off-by: Steve Howard <[email protected]>

--- autotest/scheduler/monitor_db.py    2010-01-13 20:43:26.000000000 -0800
+++ autotest/scheduler/monitor_db.py    2010-01-14 15:59:03.000000000 -0800
@@ -2533,7 +2533,7 @@
 
     def epilog(self):
         super(ArchiveResultsTask, self).epilog()
-        if not self.success:
+        if not self.success and self._paired_with_monitor().has_process():
             failed_file = os.path.join(self._working_directory(),
                                        self._ARCHIVING_FAILED_FILE)
             paired_process = self._paired_with_monitor().get_process()
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to