When we "touch" status.log make sure we don't damage any already existing log.

Risk: Low
Visibility: Follow-up runs like crashinfo collection can stomp all over
an existing status.log without this.

Signed-off-by: John Admanski <[email protected]>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@3023 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/server_job.py b/server/server_job.py
index 8296ca3..9425530 100755
--- a/server/server_job.py
+++ b/server/server_job.py
@@ -375,7 +375,7 @@
         if self.resultdir:
             os.chdir(self.resultdir)
             # touch status.log so that the parser knows a job is running here
-            open(self.get_status_log_path(), 'w').close()
+            open(self.get_status_log_path(), 'a').close()
             self.enable_external_logging()
 
         collect_crashinfo = True